diff --git a/src/lib/meta/typelist-util.hpp b/src/lib/meta/typelist-util.hpp index 812aa2487..a574fdc43 100644 --- a/src/lib/meta/typelist-util.hpp +++ b/src/lib/meta/typelist-util.hpp @@ -79,15 +79,14 @@ namespace meta { template<> struct maxSize { - enum{ value = 0 }; + static constexpr int value = 0; }; template struct maxSize > { - enum{ thisval = sizeof(TY) - , nextval = maxSize::value - , value = nextval > thisval? nextval:thisval - }; + static constexpr size_t thisval = sizeof(TY); + static constexpr size_t nextval = maxSize::value; + static constexpr size_t value = nextval > thisval? nextval:thisval; }; @@ -115,7 +114,7 @@ namespace meta { /** convenience shortcut: query function */ template - bool + constexpr bool isInList() { return IsInList::value;