From 531726eb09333000807cdb232111efbb7c067acd Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 19:05:40 +0300 Subject: [PATCH 1/3] Update msvc workarounds in type_name_test --- test/type_name_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/type_name_test.cpp b/test/type_name_test.cpp index e6574cb..6b61def 100644 --- a/test/type_name_test.cpp +++ b/test/type_name_test.cpp @@ -203,7 +203,7 @@ int main() TEST(A volatile[]); TEST(A const volatile[]); -#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1500 +#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1700 TEST(A(&)[]); #endif TEST(A const(***)[]); @@ -219,7 +219,7 @@ int main() TEST(A[][2][3]); TEST(A const[][2][3]); -#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1500 +#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1700 TEST(A(&)[][2][3]); #endif TEST(A const(***)[][2][3]); From 3ec157eb6fe51cf6802b055e070644b555154352 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 19:16:24 +0300 Subject: [PATCH 2/3] Disable cmath_test_generic on msvc-8.0 --- test/Jamfile.v2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 63f516f..dd9fc10 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -232,7 +232,7 @@ run no_exceptions_support_test.cpp ; run no_exceptions_support_test.cpp : : : off : no_exceptions_support_test_nx ; run cmath_test.cpp ; -run cmath_test.cpp : : : BOOST_CORE_USE_GENERIC_CMATH : cmath_test_generic ; +run cmath_test.cpp : : : BOOST_CORE_USE_GENERIC_CMATH msvc-8.0:no : cmath_test_generic ; run bit_cast_test.cpp ; run bit_rotate_test.cpp ; From 0deaa2d502884c334193a4277d7b7d59de66af5e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 19:22:20 +0300 Subject: [PATCH 3/3] Update msvc-12.0 workaround --- include/boost/core/type_name.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index f155943..5512c0c 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -632,7 +632,12 @@ template std::string type_name( tn_identity, std::stri return type_name( tn_identity(), ' ' + type_name( tn_identity(), "" ) + "::*" + suffix ); } -#if defined(BOOST_MSVC) && BOOST_MSVC <= 1900 && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) +#if defined(BOOST_MSVC) && BOOST_MSVC < 1900 && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) + +template std::string type_name( tn_identity, std::string const& suffix ) +{ + return function_type_name( tn_identity(), "", ' ' + type_name( tn_identity(), "" ) + "::*" + suffix ); +} template std::string type_name( tn_identity, std::string const& suffix ) {