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