2
0
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:
Andrey Semashev
2022-01-21 00:50:35 +03:00
parent e75e25bcd0
commit 3cb232ffd8

View File

@@ -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