mirror of
https://github.com/boostorg/utility.git
synced 2025-10-17 10:55:18 +02:00
Re-add constexpr support for newer MSVC versions
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user