We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fe78b5 commit e52c5efCopy full SHA for e52c5ef
include/cpp2util.h
@@ -365,13 +365,13 @@ using _uchar = unsigned char; // normally use u8 instead
365
//
366
367
template <typename T>
368
- requires (std::copy_constructible<std::remove_cvref_t<T>>)
+ requires (std::is_copy_constructible_v<std::remove_cvref_t<T>>)
369
auto move(T&& t) -> decltype(auto) {
370
return std::move(t);
371
}
372
373
374
- requires (!std::copy_constructible<std::remove_cvref_t<T>>)
+ requires (!std::is_copy_constructible_v<std::remove_cvref_t<T>>)
375
376
return std::forward<T>(t);
377
0 commit comments