std::string_view range constructor was made explicit in gcc 12.2, not 12.1.

This commit is contained in:
Andrey Semashev
2022-09-02 18:27:29 +03:00
parent cffb1d1bbd
commit 9613ccfa4a

View File

@@ -173,7 +173,7 @@
#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) && \
(\
(defined(BOOST_DINKUMWARE_STDLIB) && defined(_HAS_CXX23) && (_HAS_CXX23 != 0) && defined(_MSVC_STL_UPDATE) && (_MSVC_STL_UPDATE < 202208L)) || \
(defined(BOOST_LIBSTDCXX_VERSION) && (BOOST_LIBSTDCXX_VERSION < 120100) && (BOOST_CXX_VERSION > 202002L))\
(defined(BOOST_LIBSTDCXX_VERSION) && (BOOST_LIBSTDCXX_VERSION < 120200) && (BOOST_CXX_VERSION > 202002L))\
)
// Indicates that std::string_view has implicit constructor from ranges that was present in an early C++23 draft (N4892).
// This was later rectified by marking the constructor explicit (https://wg21.link/p2499). Unfortunately, some compilers