Przeglądaj źródła

Trait implementation simplified.

main
offa 6 lat temu
rodzic
commit
95ebf99b3d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      include/scope_success.h

+ 1
- 1
include/scope_success.h Wyświetl plik



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


} }

Ładowanie…
Anuluj
Zapisz