Skip to content

Commit e52c5ef

Browse files
committed
Remove concepts dependency so that Xcode 13 works again, closes #1033
1 parent 7fe78b5 commit e52c5ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/cpp2util.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ using _uchar = unsigned char; // normally use u8 instead
365365
//
366366

367367
template <typename T>
368-
requires (std::copy_constructible<std::remove_cvref_t<T>>)
368+
requires (std::is_copy_constructible_v<std::remove_cvref_t<T>>)
369369
auto move(T&& t) -> decltype(auto) {
370370
return std::move(t);
371371
}
372372

373373
template <typename T>
374-
requires (!std::copy_constructible<std::remove_cvref_t<T>>)
374+
requires (!std::is_copy_constructible_v<std::remove_cvref_t<T>>)
375375
auto move(T&& t) -> decltype(auto) {
376376
return std::forward<T>(t);
377377
}

0 commit comments

Comments
 (0)