summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string.hh4
-rw-r--r--src/units.hh8
2 files changed, 6 insertions, 6 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};
}
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);
}