Skip to content

Commit

Permalink
Remove now-superfluous check for empty pack
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Oct 18, 2015
1 parent af2e9df commit e8be10e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions include/tao/seq/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace tao

constexpr tuple_base() = default;

template< typename... Us, typename = impl::enable_if_t< sizeof...( Us ) != 0 > >
template< typename... Us >
TAOCPP_TUPLE_CONSTEXPR
explicit tuple_base( Us&&... us )
: tuple_value< Is, Ts >( std::forward< Us >( us ) )...
Expand All @@ -84,20 +84,12 @@ namespace tao
tuple_base( const tuple_base& ) = default;
tuple_base( tuple_base&& ) = default;

// TODO: Add more ctors

// 20.4.2.2 Assignment [tuple.assign]

TAOCPP_TUPLE_CONSTEXPR
tuple_base& operator=( const tuple_base& ) = default;

TAOCPP_TUPLE_CONSTEXPR
tuple_base& operator=( tuple_base&& ) = default;

// TODO: Add assignment

// 20.4.2.3 swap [tuple.swap]

void swap( tuple_base& v )
noexcept( seq::is_all< impl::is_nothrow_swappable< Ts >::value... >::value )
{
Expand Down

0 comments on commit e8be10e

Please sign in to comment.