diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-27 15:51:03 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-27 15:51:03 +0100 |
commit | f3c08d9a2669576078c926de91d0aa746cf2aa7d (patch) | |
tree | ff9afd5daa1faff761dbd2c0bae98dbad67092ac /lib/maths.h | |
parent | Avoid out parameters with Ray::intersectSphere (diff) | |
download | ilt-f3c08d9a2669576078c926de91d0aa746cf2aa7d.tar.bz2 ilt-f3c08d9a2669576078c926de91d0aa746cf2aa7d.tar.xz ilt-f3c08d9a2669576078c926de91d0aa746cf2aa7d.zip |
Deprecated format in C++23, picked up by gcc-15
Diffstat (limited to 'lib/maths.h')
-rw-r--r-- | lib/maths.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/maths.h b/lib/maths.h index 0afce98..43d6dcd 100644 --- a/lib/maths.h +++ b/lib/maths.h @@ -504,11 +504,11 @@ kph_to_ms(T v) } // ... literals are handy for now, probably go away when we load stuff externally -float operator"" _mph(const long double v); -float operator"" _kph(const long double v); +float operator""_mph(const long double v); +float operator""_kph(const long double v); constexpr float -operator"" _degrees(long double degrees) +operator""_degrees(long double degrees) { return static_cast<float>(degrees) * degreesToRads; } |