From 7320131b8caada0e7237e33ef4e0340577627ef4 Mon Sep 17 00:00:00 2001 From: valmat Date: Wed, 26 Nov 2014 01:13:36 +0600 Subject: Marked `noexcept` all move constructors and assigment operators See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html --- include/global.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/global.h') diff --git a/include/global.h b/include/global.h index ae54212..4593e5d 100644 --- a/include/global.h +++ b/include/global.h @@ -34,7 +34,7 @@ public: * Move constructor * @param global */ - Global(Global &&global) : Value(std::move(global)), _name(std::move(global._name)), _exists(global._exists) {} + Global(Global &&global) noexcept : Value(std::move(global)), _name(std::move(global._name)), _exists(global._exists) {} /** * Destructor @@ -70,7 +70,7 @@ public: * @return Global */ /* - Global &operator=(Global &&global) + Global &operator=(Global &&global) noexcept { // skip self assignment if (&global == this) return *this; -- cgit v1.2.3