Просмотр исходного кода

Using new trait helper variables.

main
offa 8 лет назад
Родитель
Сommit
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>;



Загрузка…
Отмена
Сохранить