Add helper macro BOOST_IF_CONSTEXPR.

This commit is contained in:
jzmaddock
2020-01-24 18:33:21 +00:00
parent 9d79e8111a
commit 9aaa4edda1
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -1002,6 +1002,14 @@ namespace std{ using ::type_info; }
#else
#define BOOST_INLINE_VARIABLE
#endif
//
// C++17 if constexpr
//
#if !defined(BOOST_NO_CXX17_IF_CONSTEXPR)
# define BOOST_IF_CONSTEXPR if constexpr
#else
# define BOOST_IF_CONSTEXPR if
#endif
//
// Unused variable/typedef workarounds: