From a5cb0582d5669e86ee913f97c001677987023967 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 3 Sep 2023 18:28:49 +0300 Subject: [PATCH] Make tag_invoke_L2 more msvc-14.0-friendly --- include/boost/variant2/variant.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index f0e8fef..e0d4739 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -2497,16 +2497,16 @@ template struct tag_invoke_L2 boost::json::value const& v; typename boost::json::result_for::type& r; - template void operator()( I i ) const + template void operator()( I /*i*/ ) const { if( !r ) { - using Ti = mp11::mp_at_c; + using Ti = mp11::mp_at_c; auto r2 = boost::json::try_value_to( v ); if( r2 ) { - r.emplace( in_place_index_t{}, std::move( *r2 ) ); + r.emplace( in_place_index_t{}, std::move( *r2 ) ); } } }