1
0
forked from boostorg/mp11

Fix mp_with_index example

This commit is contained in:
Peter Dimov
2019-06-02 17:52:04 +03:00
parent bf6f3e0221
commit d0e6e29abb

View File

@ -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;