offa 7 лет назад
Родитель
Сommit
b1c3c2cea8
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      include/unique_resource.h

+ 2
- 2
include/unique_resource.h Просмотреть файл

@@ -153,7 +153,7 @@ namespace sr
std::enable_if_t<std::is_pointer<RR>::value && std::is_nothrow_copy_constructible<RR>::value
&& ( std::is_class<std::remove_pointer_t<RR>>::value
|| std::is_union<std::remove_pointer_t<RR>>::value ), int> = 0
>
>
RR operator->() const noexcept
{
return m_resource;
@@ -175,7 +175,7 @@ namespace sr
template<class RR = R, class DD = D,
std::enable_if_t<(std::is_nothrow_move_assignable<RR>::value || std::is_nothrow_copy_assignable<RR>::value)
&& (std::is_nothrow_copy_assignable<DD>::value || std::is_nothrow_copy_assignable<DD>::value), int> = 0
>
>
unique_resource& operator=(unique_resource&& other)
{
if( this != &other )

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