forked from boostorg/variant2
Add test/variant_subset
This commit is contained in:
1 parent
8765ee1983
commit
369781b623
4 files changed
+162
-6
No files matched your search
@@ -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_) );
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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 ) ) );
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user