浏览代码

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)};
}

}

正在加载...
取消
保存