mirror of
https://github.com/boostorg/variant2.git
synced 2025-07-31 12:47:15 +02:00
Work around msvc-14.1 /permissive- failure
This commit is contained in:
@ -2448,6 +2448,11 @@ struct tag_invoke_L1
|
|||||||
{
|
{
|
||||||
boost::json::value& v;
|
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
|
template<class T> void operator()( T const& t ) const
|
||||||
{
|
{
|
||||||
boost::json::value_from( t, v );
|
boost::json::value_from( t, v );
|
||||||
|
Reference in New Issue
Block a user