Re-add constexpr support for newer MSVC versions

This commit is contained in:
Tony Lewis
2020-04-11 18:30:24 +01:00
parent 6b62dcc504
commit e3a2a06011
2 changed files with 13 additions and 9 deletions

View File

@@ -109,9 +109,13 @@
# pragma warning( disable : 4284 ) // complaint about return type of
#endif // operator-> not begin a UDT
// Define BOOST_OPS_CONSTEXPR to be like BOOST_CONSTEXPR but empty under MSVC
// Define BOOST_OPS_CONSTEXPR to be like BOOST_CONSTEXPR but empty under MSVC < v19.22
#ifdef BOOST_MSVC
#if BOOST_MSVC_FULL_VER >= 192200000
#define BOOST_OPS_CONSTEXPR constexpr
#else
#define BOOST_OPS_CONSTEXPR
#endif
#else
#define BOOST_OPS_CONSTEXPR BOOST_CONSTEXPR
#endif