mirror of
https://github.com/boostorg/atomic.git
synced 2026-01-19 04:02:09 +00:00
Added detection of support for C++17 deduction guides in MSVC.
This commit is contained in:
@@ -69,9 +69,9 @@
|
||||
#define BOOST_ATOMIC_DETAIL_NO_CXX11_CONSTEXPR_UNION_INIT
|
||||
#endif
|
||||
|
||||
#if !defined(__cpp_deduction_guides) || __cpp_deduction_guides < 201606
|
||||
#if (defined(_MSC_VER) && (_MSC_VER < 1914 || _MSVC_LANG < 201703)) || (!defined(_MSC_VER) && (!defined(__cpp_deduction_guides) || __cpp_deduction_guides < 201606))
|
||||
#define BOOST_ATOMIC_DETAIL_NO_CXX17_DEDUCTION_GUIDES
|
||||
#endif // !defined(__cpp_deduction_guides) || __cpp_deduction_guides < 201703
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_CONSTEXPR_UNION_INIT)
|
||||
#define BOOST_ATOMIC_DETAIL_CONSTEXPR_UNION_INIT BOOST_CONSTEXPR
|
||||
|
||||
Reference in New Issue
Block a user