浏览代码

Formatting.

main
offa 8 年前
父节点
当前提交
5154c6bdc2
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +1
    -1
      include/scope_fail.h
  2. +2
    -1
      include/unique_resource.h

+ 1
- 1
include/scope_fail.h 查看文件





int m_uncaught_on_creation = uncaught_exceptions(); int m_uncaught_on_creation = uncaught_exceptions();

}; };






using detail::scope_guard_base<EF, detail::scope_fail_strategy>::scope_guard_base; using detail::scope_guard_base<EF, detail::scope_fail_strategy>::scope_guard_base;



private: private:


}; };

+ 2
- 1
include/unique_resource.h 查看文件

namespace detail namespace detail
{ {
template<class T, class TT> template<class T, class TT>
using is_ntmocp_constructible = std::conditional_t<std::is_reference<TT>::value || !std::is_nothrow_move_constructible<TT>::value,
using is_ntmocp_constructible = std::conditional_t<std::is_reference<TT>::value
|| !std::is_nothrow_move_constructible<TT>::value,
typename std::is_constructible<T, const TT&>::type, typename std::is_constructible<T, const TT&>::type,
typename std::is_constructible<T, TT>::type>; typename std::is_constructible<T, TT>::type>;



正在加载...
取消
保存