Преглед на файлове

SFINAE corrected as specified in P0052.

main
offa преди 7 години
родител
ревизия
97cd340bac
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      include/unique_resource.h

+ 2
- 2
include/unique_resource.h Целия файл

@@ -163,9 +163,9 @@ namespace sr
}

template<class RR = R,
std::enable_if_t<std::is_pointer<RR>::value && std::is_nothrow_copy_constructible<RR>::value
std::enable_if_t<std::is_pointer<RR>::value
&& ( std::is_class<std::remove_pointer_t<RR>>::value
|| std::is_union<std::remove_pointer_t<RR>>::value ), int> = 0
|| std::is_union<std::remove_pointer_t<RR>>::value ), int> = 0
>
RR operator->() const noexcept
{

Loading…
Отказ
Запис