Browse Source

Inline variables used where possible.

main
offa 6 years ago
parent
commit
52b326ce08
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      include/detail/scope_guard_base.h
  2. +1
    -1
      include/scope_success.h

+ 2
- 2
include/detail/scope_guard_base.h View File

template<class F, class S> template<class F, class S>
struct is_noexcept_dtor struct is_noexcept_dtor
{ {
static constexpr bool value = true;
static inline constexpr bool value = true;
}; };




template<class F, class S> template<class F, class S>
constexpr bool is_noexcept_dtor_v = is_noexcept_dtor<F, S>::value;
inline constexpr bool is_noexcept_dtor_v = is_noexcept_dtor<F, S>::value;


template<class T> template<class T>
constexpr decltype(auto) forward_if_nothrow_move_constructible(T&& arg) constexpr decltype(auto) forward_if_nothrow_move_constructible(T&& arg)

+ 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>
{ {
static constexpr bool value = noexcept(std::declval<F>()());
static inline constexpr bool value = noexcept(std::declval<F>()());
}; };


} }

Loading…
Cancel
Save