mirror of
https://github.com/boostorg/mp11.git
synced 2025-08-08 00:34:32 +02:00
Fix mp_with_index example
This commit is contained in:
@@ -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