瀏覽代碼

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();
}

Loading…
取消
儲存