@@ -57,6 +57,7 @@ namespace sr | |||
template<class EF> | |||
[[deprecated("Use ctor instead. Will be removed in a future v0.2.x release")]] | |||
scope_exit<std::decay_t<EF>> make_scope_exit(EF&& exitFunction) | |||
{ | |||
return scope_exit<std::decay_t<EF>>{std::forward<EF>(exitFunction)}; |
@@ -67,6 +67,7 @@ namespace sr | |||
template<class EF> | |||
[[deprecated("Use ctor instead. Will be removed in a future v0.2.x release")]] | |||
scope_fail<std::decay_t<EF>> make_scope_fail(EF&& exitFunction) | |||
{ | |||
return scope_fail<std::decay_t<EF>>{std::forward<EF>(exitFunction)}; |
@@ -60,6 +60,7 @@ namespace sr | |||
template<class EF> | |||
[[deprecated("Use ctor instead. Will be removed in a future v0.2.x release")]] | |||
scope_success<std::decay_t<EF>> make_scope_success(EF&& exitFunction) | |||
{ | |||
return scope_success<std::decay_t<EF>>{std::forward<EF>(exitFunction)}; |
@@ -208,6 +208,7 @@ namespace sr | |||
template<class R, class D> | |||
[[deprecated("Use ctor instead. Will be removed in a future v0.2.x release")]] | |||
unique_resource<std::decay_t<R>, std::decay_t<D>> make_unique_resource(R&& r, D&& d) | |||
noexcept(std::is_nothrow_constructible_v<std::decay_t<R>, R> | |||
&& std::is_nothrow_constructible_v<std::decay_t<D>, D>) | |||
@@ -216,6 +217,7 @@ namespace sr | |||
} | |||
template<class R, class D> | |||
[[deprecated("Use ctor instead. Will be removed in a future v0.2.x release")]] | |||
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>) | |||
{ |