瀏覽代碼

Using new trait helper variables.

main
offa 8 年之前
父節點
當前提交
ddabea3b88
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      include/unique_resource.h

+ 2
- 2
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_v<TT>
|| !std::is_nothrow_move_constructible_v<TT>,
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>;



Loading…
取消
儲存