Add test/variant_subset

This commit is contained in:
Peter Dimov committed 2017-06-03 00:27:52 +03:00
1 parent 8765ee1983
commit 369781b623
4 files changed
+162 -6

No files matched your search

+2 -2
View File
@@ -370,7 +370,7 @@ public:
return mp_with_index<mp_size<expected>>( v_.index(), [&]( auto I ) {
return _remap_error<R>( I, f, get<I>(v_) );
return this->_remap_error<R>( I, f, get<I>(v_) );
});
}
@@ -383,7 +383,7 @@ public:
return mp_with_index<mp_size<expected>>( v_.index(), [&]( auto I ) {
return _remap_error<R>( I, f, get<I>(v_) );
return this->_remap_error<R>( I, f, get<I>(v_) );
});
}
+4 -4
View File
@@ -1064,7 +1064,7 @@ public:
using J = mp_find<mp_list<U...>, mp_at_c<mp_list<T...>, I>>;
return _subset_impl<U...>( J{}, this->_get_impl( I ) );
return this->_subset_impl<U...>( J{}, this->_get_impl( I ) );
});
}
@@ -1077,7 +1077,7 @@ public:
using J = mp_find<mp_list<U...>, mp_at_c<mp_list<T...>, I>>;
return _subset_impl<U...>( J{}, this->_get_impl( I ) );
return this->_subset_impl<U...>( J{}, this->_get_impl( I ) );
});
}
@@ -1090,7 +1090,7 @@ public:
using J = mp_find<mp_list<U...>, mp_at_c<mp_list<T...>, I>>;
return _subset_impl<U...>( J{}, std::move( this->_get_impl( I ) ) );
return this->_subset_impl<U...>( J{}, std::move( this->_get_impl( I ) ) );
});
}
@@ -1103,7 +1103,7 @@ public:
using J = mp_find<mp_list<U...>, mp_at_c<mp_list<T...>, I>>;
return _subset_impl<U...>( J{}, std::move( this->_get_impl( I ) ) );
return this->_subset_impl<U...>( J{}, std::move( this->_get_impl( I ) ) );
});
}