Przeglądaj źródła

Deduction guide for scope_fail implemented (#80).

main
offa 7 lat temu
rodzic
commit
b155aa8d7a
1 zmienionych plików z 4 dodań i 0 usunięć
  1. +4
    -0
      include/scope_fail.h

+ 4
- 0
include/scope_fail.h Wyświetl plik

@@ -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)
{

Ładowanie…
Anuluj
Zapisz