diff --git a/sprout/config/compiler/clang.hpp b/sprout/config/compiler/clang.hpp index 5b19d686..b5d0fc0b 100644 --- a/sprout/config/compiler/clang.hpp +++ b/sprout/config/compiler/clang.hpp @@ -44,7 +44,7 @@ # define SPROUT_NO_CXX11_UNICODE_LITERALS #endif -#if (!__has_feature(cxx_constexpr) || __cplusplus < 201305L) +#if (!__has_feature(cxx_constexpr) || __cplusplus < 201305L || __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 4)) # define SPROUT_NO_CXX14_CONSTEXPR #endif diff --git a/sprout/config/compiler/gcc.hpp b/sprout/config/compiler/gcc.hpp index e6294faf..3c744e55 100644 --- a/sprout/config/compiler/gcc.hpp +++ b/sprout/config/compiler/gcc.hpp @@ -52,8 +52,6 @@ # define SPROUT_HAS_CONSTEXPR_BIT_OPERATION #endif -#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9) || __cplusplus < 201300L) -# define SPROUT_NO_CXX14_CONSTEXPR -#endif +#define SPROUT_NO_CXX14_CONSTEXPR #endif // #ifndef SPROUT_CONFIG_COMPILER_GCC_HPP