Skip to content

Commit

Permalink
When defining BOOST_STL_INTERFACES_USE_DEDUCED_THIS=1, require C++23 …
Browse files Browse the repository at this point in the history
…mode for

the cases where __cpp_explicit_this_parameter is not defined, but the compiler
is known to support it.  Obviously, even if those compiler support it, it's
not available in older C++ versions.

Fixes #72.
Related to #68
  • Loading branch information
tzlaine committed Nov 10, 2024
1 parent f89646c commit cefbd30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/boost/stl_interfaces/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
#define BOOST_STL_INTERFACES_USE_CONCEPTS 0
#endif

#if (defined(__cpp_explicit_this_parameter) || \
(defined(_MSC_VER) && _MSC_VER >= 1941) || \
(defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION >= 190000)) && \
BOOST_STL_INTERFACES_USE_CONCEPTS && \
#if ( \
defined(__cpp_explicit_this_parameter) || \
(defined(_MSC_VER) && _MSC_VER >= 1941) || \
(defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION >= 190000)) && \
BOOST_STL_INTERFACES_USE_CONCEPTS && (202002L < __cplusplus) && \
!defined(BOOST_STL_INTERFACES_DISABLE_DEDUCED_THIS)
#define BOOST_STL_INTERFACES_USE_DEDUCED_THIS 1
#else
Expand Down

0 comments on commit cefbd30

Please sign in to comment.