Use standard boost move style in noexcept_tests.

This commit is contained in:
Daniel James
2016-10-02 13:04:25 +01:00
parent d0acb81f2e
commit 573e10665c

View File

@ -70,8 +70,10 @@ namespace noexcept_tests
hash_nothrow_move() { test_throw("Constructor"); } hash_nothrow_move() { test_throw("Constructor"); }
hash_nothrow_move(hash_nothrow_move const&) { test_throw("Copy"); } hash_nothrow_move(hash_nothrow_move const&) { test_throw("Copy"); }
hash_nothrow_move& operator=(hash_nothrow_move const&) hash_nothrow_move& operator=(BOOST_COPY_ASSIGN_REF(hash_nothrow_move))
{ test_throw("Assign"); return *this; } { test_throw("Assign"); return *this; }
hash_nothrow_move& operator=(BOOST_RV_REF(hash_nothrow_move))
{ test_throw("Move Assign"); return *this; }
std::size_t operator()(int x) const std::size_t operator()(int x) const
{ test_throw("Operator"); return static_cast<base const&>(*this)(x); } { test_throw("Operator"); return static_cast<base const&>(*this)(x); }
}; };
@ -87,8 +89,10 @@ namespace noexcept_tests
equal_to_nothrow_move() { test_throw("Constructor"); } equal_to_nothrow_move() { test_throw("Constructor"); }
equal_to_nothrow_move(equal_to_nothrow_move const&) equal_to_nothrow_move(equal_to_nothrow_move const&)
{ test_throw("Copy"); } { test_throw("Copy"); }
equal_to_nothrow_move& operator=(equal_to_nothrow_move const&) equal_to_nothrow_move& operator=(BOOST_COPY_ASSIGN_REF(equal_to_nothrow_move))
{ test_throw("Assign"); return *this; } { test_throw("Assign"); return *this; }
equal_to_nothrow_move& operator=(BOOST_RV_REF(equal_to_nothrow_move))
{ test_throw("Move Assign"); return *this; }
std::size_t operator()(int x, int y) const std::size_t operator()(int x, int y) const
{ test_throw("Operator"); return static_cast<base const&>(*this)(x, y); } { test_throw("Operator"); return static_cast<base const&>(*this)(x, y); }
}; };