ソースを参照

Ctor calling syntax unified.

main
offa 7年前
コミット
0ca63d67fd
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h ファイルの表示

@@ -213,7 +213,7 @@ namespace sr
unique_resource<R&, std::decay_t<D>> make_unique_resource(std::reference_wrapper<R> r, D d)
noexcept(std::is_nothrow_constructible_v<std::decay_t<D>, D>)
{
return unique_resource<R&, std::decay_t<D>>(r.get(), std::forward<D>(d));
return unique_resource<R&, std::decay_t<D>>{r.get(), std::forward<D>(d)};
}

template<class R, class D, class S = R>

読み込み中…
キャンセル
保存