Explorar el Código

Inline variables used where possible.

main
offa hace 7 años
padre
commit
52b326ce08
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +2
    -2
      include/detail/scope_guard_base.h
  2. +1
    -1
      include/scope_success.h

+ 2
- 2
include/detail/scope_guard_base.h Ver fichero

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 Ver fichero

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


} }

Cargando…
Cancelar
Guardar