浏览代码

Inline variables used where possible.

main
offa 7 年前
父节点
当前提交
52b326ce08
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +2
    -2
      include/detail/scope_guard_base.h
  2. +1
    -1
      include/scope_success.h

+ 2
- 2
include/detail/scope_guard_base.h 查看文件

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 查看文件

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


} }

正在加载...
取消
保存