浏览代码

Move ctor made noexcept (fixes #8).

main
offa 7 年前
父节点
当前提交
1aeaf4ed05
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      include/scope_guard.h

+ 2
- 2
include/scope_guard.h 查看文件

@@ -16,8 +16,8 @@ namespace sg
{
}

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

正在加载...
取消
保存