Преглед на файлове

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

main
offa преди 7 години
родител
ревизия
93d4bcd0cb
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      include/scope_exit.h
  2. +1
    -1
      include/scope_success.h

+ 1
- 1
include/scope_exit.h Целия файл

@@ -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 Целия файл

@@ -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)};
}

Loading…
Отказ
Запис