diff options
author | valmat <ufabiz@gmail.com> | 2014-11-26 01:13:36 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-11-26 01:13:36 +0600 |
commit | 7320131b8caada0e7237e33ef4e0340577627ef4 (patch) | |
tree | ff8eb589c6c5390f1380115403e6140d1bd9e118 /zend/value.cpp | |
parent | cf25fa0b9636d232c63f01824d66289ab9a89b81 (diff) |
Marked `noexcept` all move constructors and assigment operators
See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html
Diffstat (limited to 'zend/value.cpp')
-rw-r--r-- | zend/value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zend/value.cpp b/zend/value.cpp index 8d1e78f..230fe04 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -283,7 +283,7 @@ Value::Value(const Value &that) * Move constructor * @param value */ -Value::Value(Value &&that) : _val(that._val) +Value::Value(Value &&that) noexcept: _val(that._val) { // clear the other object that._val = nullptr; @@ -394,7 +394,7 @@ int Value::refcount() const * @param value * @return Value */ -Value &Value::operator=(Value &&value) +Value &Value::operator=(Value &&value) noexcept { // skip self assignment if (this == &value) return *this; |