Skip to content

Commit f146ef7

Browse files
Replace std::integral concept with requires clause because Apple Clang doesn't support it yet (#963)
Apple Clang doesn't support the `std::integral` concept yet. Signed-off-by: Neil Henderson <2060747+bluetarpmedia@users.noreply.github.com>
1 parent 6af78c9 commit f146ef7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@ auto contains(
533533

534534

535535
// Print an integer with 1,000's separators (always commas, not locale-driven)
536-
auto print_with_thousands(std::integral auto val)
536+
template <typename T>
537+
requires std::is_integral_v<T> // Note: `std::integral` concept not yet available in Apple Clang
538+
auto print_with_thousands(T val)
537539
-> std::string
538540
{
539541
auto ret = std::to_string(val % 10);

0 commit comments

Comments
 (0)