summaryrefslogtreecommitdiff
path: root/src/safe_ptr.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-28 20:01:27 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-10-28 20:01:27 +0000
commitd3091cb553283ad854ae61b5faf362a006bf3f6d (patch)
treeeb1c8bd10c8d18acf05a8bc414a69571f1aa02be /src/safe_ptr.hh
parent00aede6e577f024b50524c7c9cce87ae2a4f325b (diff)
Add noexcept spec to move constructor and move assign
Diffstat (limited to 'src/safe_ptr.hh')
-rw-r--r--src/safe_ptr.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/safe_ptr.hh b/src/safe_ptr.hh
index 6a53a02e..ac3af21d 100644
--- a/src/safe_ptr.hh
+++ b/src/safe_ptr.hh
@@ -29,7 +29,7 @@ public:
#endif
}
safe_ptr(const safe_ptr& other) : safe_ptr(other.m_ptr) {}
- safe_ptr(safe_ptr&& other) : m_ptr(other.m_ptr)
+ safe_ptr(safe_ptr&& other) noexcept : m_ptr(other.m_ptr)
{
other.m_ptr = nullptr;
#ifdef KAK_DEBUG
@@ -60,7 +60,7 @@ public:
return *this;
}
- safe_ptr& operator=(safe_ptr&& other)
+ safe_ptr& operator=(safe_ptr&& other) noexcept
{
#ifdef KAK_DEBUG
if (m_ptr)