From 5eec76b441d5449feeee29e9f292a60429448ede Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 25 Feb 2023 15:01:44 -0500 Subject: AK: Use the same consteval condition on _short_string as its factory This fixes the build with Apple Clang. --- AK/String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/String.h b/AK/String.h index de54de1e5d..c3b59d2f3b 100644 --- a/AK/String.h +++ b/AK/String.h @@ -265,7 +265,7 @@ struct Formatter : Formatter { return AK::String::from_utf8(AK::StringView(cstring, length)); } -[[nodiscard]] ALWAYS_INLINE consteval AK::String operator""_short_string(char const* cstring, size_t length) +[[nodiscard]] ALWAYS_INLINE AK_SHORT_STRING_CONSTEVAL AK::String operator""_short_string(char const* cstring, size_t length) { return AK::String::from_utf8_short_string(AK::StringView(cstring, length)); } -- cgit v1.2.3