mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix trivial constructor declaration
This commit is contained in:
parent
1bce2b4a5b
commit
478c476611
16 changed files with 89 additions and 69 deletions
|
@ -13,7 +13,6 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/metafunction.hpp>
|
||||
#include <sprout/utility/forward.hpp>
|
||||
#include <sprout/utility/swap.hpp>
|
||||
#include <sprout/utility/pair/pair_decl.hpp>
|
||||
#include <sprout/tuple/tuple/tuple.hpp>
|
||||
#include <sprout/tuple/tuple/get.hpp>
|
||||
|
|
|
@ -40,8 +40,8 @@ namespace sprout {
|
|||
: first()
|
||||
, second()
|
||||
{}
|
||||
SPROUT_CONSTEXPR pair(pair const&) = default;
|
||||
SPROUT_CONSTEXPR pair(pair&&) = default;
|
||||
pair(pair const&) = default;
|
||||
pair(pair&&) = default;
|
||||
SPROUT_CONSTEXPR pair(T1 const& x, T2 const& y)
|
||||
: first(x)
|
||||
, second(y)
|
||||
|
@ -102,7 +102,11 @@ namespace sprout {
|
|||
>
|
||||
SPROUT_CONSTEXPR pair(sprout::tuples::tuple<U, V>&& other);
|
||||
|
||||
pair& operator=(pair const& rhs) = default;
|
||||
SPROUT_CXX14_CONSTEXPR pair& operator=(pair const& rhs) {
|
||||
first = rhs.first;
|
||||
second = rhs.second;
|
||||
return *this;
|
||||
}
|
||||
SPROUT_CXX14_CONSTEXPR pair& operator=(pair&& rhs)
|
||||
SPROUT_NOEXCEPT_EXPR(std::is_nothrow_move_assignable<T1>::value && std::is_nothrow_move_assignable<T2>::value)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue