From 69d2c6d95cbe880489588cfc08fd73ba0e9882fc Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 5 Aug 2022 12:39:48 -0700 Subject: [PATCH] use enable_if_t instead of requires --- src/Text.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text.hh b/src/Text.hh index 03c2125b..d573a760 100644 --- a/src/Text.hh +++ b/src/Text.hh @@ -192,11 +192,11 @@ template struct parray { ItemT items[Count]; - template requires (std::is_arithmetic::value) + template ::value, bool> = true> parray() { this->clear(0); } - template requires (!std::is_arithmetic::value) + template ::value, bool> = true> parray() { } parray(const parray& other) {