1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add advance C++14 constexpr version

This commit is contained in:
bolero-MURAKAMI 2013-10-05 13:35:26 +09:00
parent b76e0aeb7f
commit a90bbd5f38
28 changed files with 145 additions and 46 deletions

View file

@ -44,7 +44,9 @@
# define SPROUT_NO_CXX11_UNICODE_LITERALS
#endif
#define SPROUT_NO_CXX14_CONSTEXPR
#if (!__has_feature(cxx_constexpr) || __cplusplus < 201305L)
# define SPROUT_NO_CXX14_CONSTEXPR
#endif
#if !defined(SPROUT_NO_CXX11_CONSTEXPR)
# define SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE

View file

@ -52,6 +52,8 @@
# define SPROUT_HAS_CONSTEXPR_BIT_OPERATION
#endif
#define SPROUT_NO_CXX14_CONSTEXPR
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9) || __cplusplus < 201300L)
# define SPROUT_NO_CXX14_CONSTEXPR
#endif
#endif // #ifndef SPROUT_CONFIG_COMPILER_GCC_HPP