瀏覽代碼

Formatting.

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

+ 2
- 0
include/scope_exit.h 查看文件

{ {
namespace detail namespace detail
{ {

struct scope_exit_strategy struct scope_exit_strategy
{ {
constexpr bool should_execute() const constexpr bool should_execute() const
return true; return true;
} }
}; };

} }





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

{ {
namespace detail namespace detail
{ {

struct scope_fail_strategy struct scope_fail_strategy
{ {
bool should_execute() const bool should_execute() const


int m_uncaught_on_creation = uncaught_exceptions(); int m_uncaught_on_creation = uncaught_exceptions();
}; };

} }





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

{ {
namespace detail namespace detail
{ {

struct scope_success_strategy struct scope_success_strategy
{ {
bool should_execute() const bool should_execute() const

Loading…
取消
儲存