浏览代码

Changed noexcepts of the scope guard ctor's adapted (fixes #107).

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

+ 0
- 7
include/scope_fail.h 查看文件

@@ -39,13 +39,6 @@ namespace sr
int m_uncaught_on_creation = std::uncaught_exceptions();
};


template<class F>
struct is_noexcept_dtor<F, scope_fail_strategy>
{
static constexpr bool value = noexcept(std::declval<F>()());
};

}



+ 7
- 0
include/scope_success.h 查看文件

@@ -39,6 +39,13 @@ namespace sr
int m_uncaught_on_creation = std::uncaught_exceptions();
};


template<class F>
struct is_noexcept_dtor<F, scope_success_strategy>
{
static constexpr bool value = noexcept(std::declval<F>()());
};

}



正在加载...
取消
保存