forked from boostorg/mp11
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 ) {
|
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;
|
std::cout << std::get<I>( v ) << std::endl;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user