瀏覽代碼

Deduction guide for scope_fail implemented (#80).

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

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

@@ -62,6 +62,10 @@ namespace sr
};


template <class EF>
scope_fail(EF &&ef) -> scope_fail<std::decay_t<EF>>;


template<class EF>
scope_fail<std::decay_t<EF>> make_scope_fail(EF&& exitFunction)
{

Loading…
取消
儲存