Pārlūkot izejas kodu

Noexcept's removed from scope guard factory functions (fixes #45).

main
offa pirms 7 gadiem
vecāks
revīzija
93d4bcd0cb
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      include/scope_exit.h
  2. +1
    -1
      include/scope_success.h

+ 1
- 1
include/scope_exit.h Parādīt failu

@@ -102,7 +102,7 @@ namespace sr


template<class Deleter>
scope_exit<std::decay_t<Deleter>> make_scope_exit(Deleter&& deleter) noexcept
scope_exit<std::decay_t<Deleter>> make_scope_exit(Deleter&& deleter)
{
return scope_exit<std::decay_t<Deleter>>{std::forward<Deleter>(deleter)};
}

+ 1
- 1
include/scope_success.h Parādīt failu

@@ -109,7 +109,7 @@ namespace sr


template<class Deleter>
scope_success<std::decay_t<Deleter>> make_scope_success(Deleter&& deleter) noexcept
scope_success<std::decay_t<Deleter>> make_scope_success(Deleter&& deleter)
{
return scope_success<std::decay_t<Deleter>>{std::forward<Deleter>(deleter)};
}

Notiek ielāde…
Atcelt
Saglabāt