1
0
Fork 0
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:
bolero-MURAKAMI 2014-08-16 17:35:36 +09:00
parent 979af136a1
commit cb23ccdd55
3 changed files with 26 additions and 37 deletions

View file

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