From 8d3173d1a43c8a3c7b46f6e16fa90f565312fcd5 Mon Sep 17 00:00:00 2001 From: Locria Cyber <74560659+iacore@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:44:42 +0000 Subject: [PATCH] Remove wrong usage of `noexcept` I have no idea why I added this. --- hyperpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 25610a05..9f2ab8fd 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -21,8 +21,8 @@ namespace hr { static constexpr ld A_PI = M_PI; static constexpr ld TAU = 2 * A_PI; static constexpr ld degree = A_PI / 180; -static constexpr ld golden_phi = noexcept((sqrt(5)+1)/2); -static constexpr ld log_golden_phi = noexcept(log(golden_phi)); +static constexpr ld golden_phi = (sqrt(5)+1)/2; +static constexpr ld log_golden_phi = log(golden_phi); constexpr ld operator"" _deg(long double deg) { return deg * A_PI / 180; } #endif