Mark some move and move-assignment ctors noexcept

This commit is contained in:
Joe Loser
2018-06-20 22:03:08 -04:00
committed by Nik Bougalis
parent 5f8037c55b
commit 73fb3f0bfa
19 changed files with 179 additions and 33 deletions

View File

@@ -93,7 +93,8 @@ private:
++counter_;
}
Wrapper (Wrapper&& rhs)
Wrapper (Wrapper&& rhs) noexcept(
std::is_nothrow_move_constructible<Closure>::value)
: counter_ (rhs.counter_)
, closure_ (std::move (rhs.closure_))
{