Work around msvc-14.1 /permissive- failure

This commit is contained in:
Peter Dimov
2022-10-24 15:47:09 +03:00
parent bcb8796225
commit 376925a209

View File

@ -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<class T> void operator()( T const& t ) const
{
boost::json::value_from( t, v );