瀏覽代碼

Using curlybraces in the factory. Unlike mentioned in § 9.1 this seems

to work.
main
offa 7 年之前
父節點
當前提交
053e6edced
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/scope_guard.h

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

@@ -82,7 +82,7 @@ namespace sr
template<class Deleter>
scope_guard_t<Deleter> scope_guard(Deleter&& deleter) noexcept
{
return scope_guard_t<Deleter>(std::move(deleter));
return scope_guard_t<Deleter>{std::move(deleter)};
}

}

Loading…
取消
儲存