Compare commits

...

1 Commits

Author SHA1 Message Date
a5cb0582d5 Make tag_invoke_L2 more msvc-14.0-friendly 2023-09-03 18:28:49 +03:00

View File

@ -2497,16 +2497,16 @@ template<class V> struct tag_invoke_L2
boost::json::value const& v;
typename boost::json::result_for<V, boost::json::value>::type& r;
template<class I> void operator()( I i ) const
template<class I> void operator()( I /*i*/ ) const
{
if( !r )
{
using Ti = mp11::mp_at_c<V, i>;
using Ti = mp11::mp_at_c<V, I::value>;
auto r2 = boost::json::try_value_to<Ti>( v );
if( r2 )
{
r.emplace( in_place_index_t<i>{}, std::move( *r2 ) );
r.emplace( in_place_index_t<I::value>{}, std::move( *r2 ) );
}
}
}