mirror of
https://github.com/boostorg/config.git
synced 2025-08-04 14:44:28 +02:00
Merge pull request #452 from boostorg/pr/boost-msstl-version
Add macro BOOST_MSSTL_VERSION
This commit is contained in:
@@ -1535,6 +1535,13 @@ Defined if the Windows platform API is available.
|
|||||||
Defined if the dinkumware standard library is in use, takes the same value
|
Defined if the dinkumware standard library is in use, takes the same value
|
||||||
as the Dinkumware library version macro `_CPPLIB_VER` if defined, otherwise 1.
|
as the Dinkumware library version macro `_CPPLIB_VER` if defined, otherwise 1.
|
||||||
]]
|
]]
|
||||||
|
[[`BOOST_MSSTL_VERSION`][`<boost/config.hpp>`][
|
||||||
|
Defined if the Microsoft Visual C++ standard library is in use.
|
||||||
|
Has the value of `_MSVC_STL_VERSION` when that is defined, and a synthesized
|
||||||
|
value of the same format otherwise. Example values are 143 for
|
||||||
|
VS2022/msvc-14.3, 142 for VS2019/msvc-14.2, 141 for VS2017/msvc-14.1,
|
||||||
|
140 for VS2015/msvc-14.0, 120 for VS2013/msvc-12.0, and so on.
|
||||||
|
]]
|
||||||
[[`BOOST_NO_WREGEX`][`<boost/regex.hpp>`][
|
[[`BOOST_NO_WREGEX`][`<boost/regex.hpp>`][
|
||||||
Defined if the regex library does not support wide character regular
|
Defined if the regex library does not support wide character regular
|
||||||
expressions.
|
expressions.
|
||||||
|
@@ -285,6 +285,36 @@
|
|||||||
# define BOOST_DINKUMWARE_STDLIB 1
|
# define BOOST_DINKUMWARE_STDLIB 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// BOOST_MSSTL_VERSION: as _MSVC_STL_VERSION, but for earlier releases as well
|
||||||
|
|
||||||
|
#if defined(_MSVC_STL_VERSION) // VS2017 (14.1) and above
|
||||||
|
# define BOOST_MSSTL_VERSION _MSVC_STL_VERSION
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 650 // VS2015 (14.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 140
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 610 // VS2013 (12.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 120
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 540 // VS2012 (11.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 110
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 520 // VS2010 (10.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 100
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 505 // VS2008SP1 (9.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 91
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 503 // VS2008 (also 9.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 90
|
||||||
|
|
||||||
|
#elif defined(_CPPLIB_VER) && _CPPLIB_VER >= 405 // VS2005 (8.0)
|
||||||
|
# define BOOST_MSSTL_VERSION 80
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
#ifdef _CPPLIB_VER
|
#ifdef _CPPLIB_VER
|
||||||
# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
|
# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
|
||||||
#else
|
#else
|
||||||
|
@@ -1277,6 +1277,7 @@ void print_boost_macros()
|
|||||||
PRINT_MACRO(BOOST_CLANG);
|
PRINT_MACRO(BOOST_CLANG);
|
||||||
PRINT_MACRO(BOOST_CLANG_VERSION);
|
PRINT_MACRO(BOOST_CLANG_VERSION);
|
||||||
PRINT_MACRO(BOOST_LIBSTDCXX_VERSION);
|
PRINT_MACRO(BOOST_LIBSTDCXX_VERSION);
|
||||||
|
PRINT_MACRO(BOOST_MSSTL_VERSION);
|
||||||
PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE);
|
PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE);
|
||||||
PRINT_MACRO(BOOST_UNREACHABLE_RETURN(0));
|
PRINT_MACRO(BOOST_UNREACHABLE_RETURN(0));
|
||||||
PRINT_MACRO(BOOST_CONSTEXPR);
|
PRINT_MACRO(BOOST_CONSTEXPR);
|
||||||
|
Reference in New Issue
Block a user