Browse Source

Deduction guide for scope_success implemented (#80).

main
offa 7 years ago
parent
commit
9d5b707063
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      include/scope_success.h

+ 4
- 0
include/scope_success.h View File

@@ -55,6 +55,10 @@ namespace sr
};


template <class EF>
scope_success(EF &&ef) -> scope_success<std::decay_t<EF>>;


template<class EF>
scope_success<std::decay_t<EF>> make_scope_success(EF&& exitFunction)
{

Loading…
Cancel
Save