mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix index_tuple implementation
This commit is contained in:
parent
979af136a1
commit
cb23ccdd55
3 changed files with 26 additions and 37 deletions
|
@ -493,14 +493,7 @@ namespace sprout {
|
|||
SPROUT_CXX14_CONSTEXPR tuple& operator=(sprout::pair<UType1, UType2>&& rhs);
|
||||
// tuple swap
|
||||
SPROUT_CXX14_CONSTEXPR void swap(tuple& other)
|
||||
SPROUT_NOEXCEPT_IF(
|
||||
sprout::tpp::all_of_c<
|
||||
SPROUT_NOEXCEPT_EXPR_OR_DEFAULT(
|
||||
sprout::swap(std::declval<Types&>(), std::declval<Types&>()),
|
||||
(sprout::tuples::detail::dummy_integral_constant<Types, bool, false>::value)
|
||||
)...
|
||||
>::value
|
||||
)
|
||||
SPROUT_NOEXCEPT_IF(sprout::tpp::all_of_c<SPROUT_NOEXCEPT_EXPR(sprout::swap(std::declval<Types&>(), std::declval<Types&>()))...>::value)
|
||||
{
|
||||
impl_type::swap(other);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue