From 8a170ff8117d4f5dbda2f239fa587b4f2b779ba5 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 25 Jul 2018 16:17:55 +0200 Subject: [PATCH] Simplify the way we achieve printing the error message when using the old API Signed-off-by: Gergely Nagy --- src/Kaleidoscope/MagicCombo.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Kaleidoscope/MagicCombo.h b/src/Kaleidoscope/MagicCombo.h index 38e669a2..105c71be 100644 --- a/src/Kaleidoscope/MagicCombo.h +++ b/src/Kaleidoscope/MagicCombo.h @@ -50,14 +50,9 @@ class MagicCombo : public kaleidoscope::Plugin { typedef struct combo_t { uint32_t left_hand, right_hand; - template - struct always_false { - enum { value = false }; - }; - template combo_t(T l, T r) { - static_assert(always_false::value, _DEPRECATE(_MAGICCOMBO_API_CHANGE)); + static_assert(sizeof(T) < 0, _DEPRECATE(_MAGICCOMBO_API_CHANGE)); } } combo_t;