From 0deaa2d502884c334193a4277d7b7d59de66af5e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 19:22:20 +0300 Subject: [PATCH] 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 ) {