Skip to content

Commit

Permalink
fix user-defined literal operator syntax (to make clang20 happy)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Le Goff committed Dec 17, 2024
1 parent 2bb167c commit 7697b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/Definitions/Units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ constexpr double mol = 1.0;
namespace UnitLiterals {
// define user literal functions for the given unit constant
#define ACTS_DEFINE_UNIT_LITERAL(name) \
constexpr double operator"" _##name(long double x) { \
constexpr double operator""_##name(long double x) { \
return ::Acts::UnitConstants::name * x; \
} \
constexpr double operator"" _##name(unsigned long long x) { \
constexpr double operator""_##name(unsigned long long x) { \
return ::Acts::UnitConstants::name * x; \
}
ACTS_DEFINE_UNIT_LITERAL(fm)
Expand Down
2 changes: 1 addition & 1 deletion Core/include/Acts/Utilities/HashedString.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ constexpr HashedString hashStringDynamic(std::string_view s) {
}

namespace HashedStringLiteral {
constexpr HashedString operator"" _hash(char const* s, std::size_t count) {
constexpr HashedString operator""_hash(char const* s, std::size_t count) {
return detail::fnv1a_32(s, count);
}

Expand Down

0 comments on commit 7697b27

Please sign in to comment.