forked from boostorg/mp11
Fix mp_with_index example
This commit is contained in:
1 parent
bf6f3e0221
commit
d0e6e29abb
1 file changed
+1
-1
@@ -743,7 +743,7 @@ template<class... T> void print( std::variant<T...> const& v )
|
||||
{
|
||||
mp_with_index<sizeof...(T)>( v.index(), [&]( auto I ) {
|
||||
|
||||
// I is mp_size_t<v.index()> here
|
||||
// I is mp_size_t<v.index()>{} here
|
||||
|
||||
std::cout << std::get<I>( v ) << std::endl;
|
||||
|
||||
|
||||
Reference in new issue
Block a user