Skip to content

Commit

Permalink
forcing inline literals
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed Dec 4, 2024
1 parent 00cdf91 commit 138cdb8
Showing 1 changed file with 2 additions and 2 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) \
consteval double operator"" _##name(long double x) { \
inline consteval double operator"" _##name(long double x) { \
return ::Acts::UnitConstants::name * x; \
} \
consteval double operator"" _##name(unsigned long long x) { \
inline consteval double operator"" _##name(unsigned long long x) { \
return ::Acts::UnitConstants::name * x; \
}
ACTS_DEFINE_UNIT_LITERAL(fm)
Expand Down

0 comments on commit 138cdb8

Please sign in to comment.