Make move constructor/assignment noexcept
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,5 +1,7 @@
|
||||
Version 1.0.7
|
||||
|
||||
* Make move constructor/assignment noexcept.
|
||||
|
||||
* Use snprintf() instead of sprintf() to avoid warnings.
|
||||
|
||||
Version 1.0.6
|
||||
|
||||
@@ -155,10 +155,10 @@ namespace stud
|
||||
void
|
||||
swap (uuid&);
|
||||
|
||||
uuid (uuid&&);
|
||||
uuid (uuid&&) noexcept;
|
||||
uuid (const uuid&) = default;
|
||||
|
||||
uuid& operator= (uuid&&);
|
||||
uuid& operator= (uuid&&) noexcept;
|
||||
uuid& operator= (const uuid&) = default;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,14 +36,14 @@ namespace stud
|
||||
}
|
||||
|
||||
inline uuid::
|
||||
uuid (uuid&& u)
|
||||
uuid (uuid&& u) noexcept
|
||||
: uuid () // nil
|
||||
{
|
||||
swap (u);
|
||||
}
|
||||
|
||||
inline uuid& uuid::
|
||||
operator= (uuid&& u)
|
||||
operator= (uuid&& u) noexcept
|
||||
{
|
||||
if (this != &u)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user