Browse Source

Move ctor is no longer noexcept.

main
offa 8 years ago
parent
commit
54190db19e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/scope_guard.h

+ 2
- 2
include/scope_guard.h View File



scope_guard_t(const scope_guard_t&) = delete; scope_guard_t(const scope_guard_t&) = delete;


scope_guard_t(scope_guard_t&& other) noexcept : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
scope_guard_t(scope_guard_t&& other) : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
{ {
other.release(); other.release();
} }

Loading…
Cancel
Save