Fix mp_with_index example

This commit is contained in:
Peter Dimov committed 2019-06-02 17:52:04 +03:00
1 parent bf6f3e0221
commit d0e6e29abb
1 file changed
+1 -1
+1 -1
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;