Browse Source

Deduction guide for scope_fail implemented (#80).

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

+ 4
- 0
include/scope_fail.h View File

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


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


template<class EF>
scope_fail<std::decay_t<EF>> make_scope_fail(EF&& exitFunction)
{

Loading…
Cancel
Save