Procházet zdrojové kódy

Changed noexcepts of the scope guard ctor's adapted (fixes #107).

main
offa před 8 roky
rodič
revize
347cd514e6
2 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. +0
    -7
      include/scope_fail.h
  2. +7
    -0
      include/scope_success.h

+ 0
- 7
include/scope_fail.h Zobrazit soubor

int m_uncaught_on_creation = std::uncaught_exceptions(); int m_uncaught_on_creation = std::uncaught_exceptions();
}; };



template<class F>
struct is_noexcept_dtor<F, scope_fail_strategy>
{
static constexpr bool value = noexcept(std::declval<F>()());
};

} }





+ 7
- 0
include/scope_success.h Zobrazit soubor

int m_uncaught_on_creation = std::uncaught_exceptions(); int m_uncaught_on_creation = std::uncaught_exceptions();
}; };



template<class F>
struct is_noexcept_dtor<F, scope_success_strategy>
{
static constexpr bool value = noexcept(std::declval<F>()());
};

} }





Načítá se…
Zrušit
Uložit