Browse Source

Ctor calling syntax unified.

main
offa 7 years ago
parent
commit
0ca63d67fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h View File

unique_resource<R&, std::decay_t<D>> make_unique_resource(std::reference_wrapper<R> r, D d) 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>) 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> template<class R, class D, class S = R>

Loading…
Cancel
Save