瀏覽代碼

Formatting.

main
offa 8 年之前
父節點
當前提交
f8fc803afa
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      include/scope_fail.h
  2. +1
    -1
      include/scope_success.h

+ 1
- 1
include/scope_fail.h 查看文件



~scope_fail() noexcept(noexcept(std::declval<EF>())) ~scope_fail() noexcept(noexcept(std::declval<EF>()))
{ {
if( (m_execute_on_destruction == true) && ( uncaught_exceptions() > m_uncaught_on_creation ) )
if( ( m_execute_on_destruction == true ) && ( uncaught_exceptions() > m_uncaught_on_creation ) )
{ {
m_exitFunction(); m_exitFunction();
} }

+ 1
- 1
include/scope_success.h 查看文件



~scope_success() noexcept(noexcept(std::declval<EF>())) ~scope_success() noexcept(noexcept(std::declval<EF>()))
{ {
if( (m_execute_on_destruction == true) && ( uncaught_exceptions() <= m_uncaught_on_creation ) )
if( ( m_execute_on_destruction == true ) && ( uncaught_exceptions() <= m_uncaught_on_creation ) )
{ {
m_exitFunction(); m_exitFunction();
} }

Loading…
取消
儲存