Sfoglia il codice sorgente

Returntype corrected.

main
offa 7 anni fa
parent
commit
49f560c721
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      include/unique_resource.h

+ 2
- 2
include/unique_resource.h Vedi File

@@ -53,7 +53,7 @@ namespace sr
}

template<class T, std::enable_if_t<!std::is_nothrow_move_constructible<T>::value, int> = 0>
constexpr T forward_if_nothrow_move_constructible(T&& value)
constexpr const T& forward_if_nothrow_move_constructible(T&& value)
{
return value;
}
@@ -74,7 +74,7 @@ namespace sr
std::enable_if_t<is_nothrow_move_or_copy_constructible_from_v<R, RR>, int> = 0,
std::enable_if_t<is_nothrow_move_or_copy_constructible_from_v<D, DD>, int> = 0
>
explicit unique_resource(RR&& r, DD&& d) noexcept(std::is_nothrow_constructible<R, RR>::value
explicit unique_resource(RR&& r, DD&& d) noexcept(std::is_nothrow_constructible<R,RR>::value
&& std::is_nothrow_constructible<D, DD>::value)
: m_resource(std::move(r)),
m_deleter(std::move(d)),

Loading…
Annulla
Salva