|
|
@@ -63,7 +63,7 @@ public:
|
|
|
* @param other The handle to copy from.
|
|
|
*/
|
|
|
template<typename Other>
|
|
|
- requires !std::same_as<Type, Other> && std::constructible_from<Type &, Other &>
|
|
|
+ requires (!std::same_as<Type, Other> && std::constructible_from<Type &, Other &>)
|
|
|
resource(const resource<Other> &other) noexcept
|
|
|
: value{other.value} {}
|
|
|
|
|
|
@@ -73,8 +73,8 @@ public:
|
|
|
* @param other The handle to move from.
|
|
|
*/
|
|
|
template<typename Other>
|
|
|
- requires !std::same_as<Type, Other> && std::constructible_from<Type &, Other &>
|
|
|
- resource(resource<Other> && other) noexcept
|
|
|
+ requires (!std::same_as<Type, Other> && std::constructible_from<Type &, Other &>)
|
|
|
+ resource(resource<Other> &&other) noexcept
|
|
|
: value{std::move(other.value)} {}
|
|
|
|
|
|
/*! @brief Default destructor. */
|