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

@@ -61,12 +61,12 @@ public:
assign_new (thing.data(), thing.size());
}
bignum(bignum&& that) : ptr( that.ptr )
bignum(bignum&& that) noexcept : ptr( that.ptr )
{
that.ptr = nullptr;
}
bignum& operator= (bignum&& that)
bignum& operator= (bignum&& that) noexcept
{
using std::swap;
@@ -163,7 +163,7 @@ public:
ec_point (ec_point const&) = delete;
ec_point& operator=(ec_point const&) = delete;
ec_point(ec_point&& that)
ec_point(ec_point&& that) noexcept
{
ptr = that.ptr;
that.ptr = nullptr;