From 2245e8cea1cf41edaf1d7d43be9099107d1d0e60 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Sat, 26 Sep 2020 09:27:34 -0700 Subject: [PATCH] Fix _rad and _deg literal operators not working --- include/math/math_common.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/math/math_common.hpp b/include/math/math_common.hpp index 47ad9b8..4206928 100644 --- a/include/math/math_common.hpp +++ b/include/math/math_common.hpp @@ -48,13 +48,13 @@ namespace math{ return (t * pi()) / 180.0; } - constexpr long double operator"" _rad(long double f){ - return f; - } - constexpr long double operator"" _deg(long double f){ - return to_radians(f); - } - +} +constexpr long double operator"" _rad(long double f){ + return f; +} +constexpr long double operator"" _deg(long double f){ + return math::to_radians(f); } + #endif