From d22921e1482e726cfe5dcebf82b29aa96db96183 Mon Sep 17 00:00:00 2001 From: John Muehlhausen Date: Mon, 15 Jan 2018 19:34:36 -0600 Subject: [PATCH] add Base to allow is_base_of to mimic is_enum --- enum.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/enum.h b/enum.h index ab5ea18..39264fe 100644 --- a/enum.h +++ b/enum.h @@ -485,6 +485,8 @@ struct _initialize_at_program_start { _initialize_at_program_start() { Enum::initialize(); } }; +struct Base {}; + } // namespace better_enums @@ -588,7 +590,7 @@ BETTER_ENUMS_ID(GenerateSwitchType(Underlying, __VA_ARGS__)) \ \ } \ \ -class Enum { \ +class Enum : better_enums::Base { \ private: \ typedef ::better_enums::optional _optional; \ typedef ::better_enums::optional _optional_index; \