From 495e2de57e587450e9532c7fe4ae0c2bfb196e6c Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 27 Jan 2015 01:37:13 +0100 Subject: Marked move constructors noexcept (allows move constructor to be used when type is used within a stl container) --- src/core/managed/ManagedContainer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/managed/ManagedContainer.hpp') diff --git a/src/core/managed/ManagedContainer.hpp b/src/core/managed/ManagedContainer.hpp index f62ba11..35d431b 100644 --- a/src/core/managed/ManagedContainer.hpp +++ b/src/core/managed/ManagedContainer.hpp @@ -319,7 +319,7 @@ public: * * @param other is the other container that should be moved. */ - ManagedContainer(own_type &&other) + ManagedContainer(own_type &&other) noexcept : owner(other.owner), c(std::move(other.c)) { // other.owner = nullptr; @@ -408,7 +408,7 @@ public: * @param other is the collection instance that should be moved; * @return this instance. */ - own_type &operator=(own_type &&other) + own_type &operator=(own_type &&other) noexcept { finalize(); owner = other.owner; -- cgit v1.2.3