From 376925a2099dab0221325c6001d970ddb18c9b8e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 24 Oct 2022 15:47:09 +0300 Subject: [PATCH] Work around msvc-14.1 /permissive- failure --- include/boost/variant2/variant.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index 91920de..7451eda 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -2448,6 +2448,11 @@ struct tag_invoke_L1 { boost::json::value& v; +#if defined(BOOST_MSVC) && BOOST_MSVC / 10 == 191 + // msvc-14.1 with /permissive- needs this + explicit tag_invoke_L1( boost::json::value& v_ ): v( v_ ) {} +#endif + template void operator()( T const& t ) const { boost::json::value_from( t, v );