From e267512ad40c073bd5a5b37a4ee3378c80b9f523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 25 Jan 2018 02:17:20 +0100 Subject: Restore the is_one_of variable template --- src/utils/is_one_of.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/is_one_of.hpp b/src/utils/is_one_of.hpp index c706421..4d6770e 100644 --- a/src/utils/is_one_of.hpp +++ b/src/utils/is_one_of.hpp @@ -3,12 +3,15 @@ #include template -struct is_one_of { +struct is_one_of_implem { static constexpr bool value = false; }; template -struct is_one_of { +struct is_one_of_implem { static constexpr bool value = - std::is_same::value || is_one_of::value; + std::is_same::value || is_one_of_implem::value; }; + +template +constexpr bool is_one_of = is_one_of_implem::value; -- cgit v1.2.3