summaryrefslogtreecommitdiff
path: root/src/units.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/units.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/units.hh')
-rw-r--r--src/units.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/units.hh b/src/units.hh
index 9d2511b9..eb802351 100644
--- a/src/units.hh
+++ b/src/units.hh
@@ -109,7 +109,7 @@ struct LineCount : public StronglyTypedNumber<LineCount, int>
};
[[gnu::always_inline]]
-inline constexpr LineCount operator"" _line(unsigned long long int value)
+inline constexpr LineCount operator""_line(unsigned long long int value)
{
return LineCount(value);
}
@@ -120,7 +120,7 @@ struct ByteCount : public StronglyTypedNumber<ByteCount, int>
};
[[gnu::always_inline]]
-inline constexpr ByteCount operator"" _byte(unsigned long long int value)
+inline constexpr ByteCount operator""_byte(unsigned long long int value)
{
return ByteCount(value);
}
@@ -135,7 +135,7 @@ struct CharCount : public StronglyTypedNumber<CharCount, int>
};
[[gnu::always_inline]]
-inline constexpr CharCount operator"" _char(unsigned long long int value)
+inline constexpr CharCount operator""_char(unsigned long long int value)
{
return CharCount(value);
}
@@ -146,7 +146,7 @@ struct ColumnCount : public StronglyTypedNumber<ColumnCount, int>
};
[[gnu::always_inline]]
-inline constexpr ColumnCount operator"" _col(unsigned long long int value)
+inline constexpr ColumnCount operator""_col(unsigned long long int value)
{
return ColumnCount(value);
}