From f833040d4835f803006c0e0883f0e21ae8cfe8ac Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Oct 2021 05:42:41 +0300 Subject: [PATCH] Disable msvc warnings around tn_is_function --- include/boost/core/type_name.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index dfdedd3..8632f81 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -88,10 +88,19 @@ template struct tn_remove_const // tn_is_function (also catches references but that's OK) +#if defined(BOOST_MSVC) +# pragma warning(push) +# pragma warning(disable: 4180 4181) +#endif + template::type> struct tn_is_function: core::is_same { }; +#if defined(BOOST_MSVC) +# pragma warning(pop) +#endif + #if !defined(BOOST_NO_TYPEID) // typeid_name