Browse Source

Deduction guide for unique_resource implemented (#80).

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

+ 6
- 0
include/unique_resource.h View File

@@ -200,6 +200,12 @@ namespace sr
};


template<class R, class D>
unique_resource(R&& r, D&& d) -> unique_resource<std::decay_t<R>, std::decay_t<D>>;

template<typename R, typename D>
unique_resource(std::reference_wrapper<R> r, D&& d) -> unique_resource<R&, std::decay_t<D>>;


template<class R, class D>
unique_resource<std::decay_t<R>, std::decay_t<D>> make_unique_resource(R&& r, D&& d)

Loading…
Cancel
Save