Browse Source

Trait implementation simplified.

main
offa 5 years ago
parent
commit
95ebf99b3d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/scope_success.h

+ 1
- 1
include/scope_success.h View File



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


} }

Loading…
Cancel
Save