summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2025-05-10 21:19:35 +0200
committerMaxime Coste <mawww@kakoune.org>2025-05-11 09:57:04 +1000
commit1de0003e292034f11d05be7ffbe366f4fc23bb76 (patch)
treebb63ee61288e20e65ff47d2ca302de77b0c4678e /src/string.hh
parent7c3efe3b92816697383c5792d7876e7ed6e331ae (diff)
Fix compiler warning on space in string-literal suffix def
GCC complains: src/string.hh:376:39: warning: space between quotes and suffix is deprecated in C++23 [-Wdeprecated-literal-operator] 376 | inline constexpr StringView operator"" _sv(const char* str, size_t) | ^~
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.hh b/src/string.hh
index fd1e5b74..3b8c9013 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -368,12 +368,12 @@ inline auto operator<=>(const StringView& lhs, const StringView& rhs)
}
-inline String operator"" _str(const char* str, size_t)
+inline String operator""_str(const char* str, size_t)
{
return String(str);
}
-inline StringView operator"" _sv(const char* str, size_t)
+inline StringView operator""_sv(const char* str, size_t)
{
return StringView{str};
}