From ad7f8976007a9aaabbce93925334a3b9422bd864 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 16 Jun 2023 16:24:53 +0300 Subject: [PATCH] fix: `constexpr` evaluation maximum step limit fixed for clang for `proton_mass` --- src/systems/hep/include/mp-units/systems/hep/hep.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systems/hep/include/mp-units/systems/hep/hep.h b/src/systems/hep/include/mp-units/systems/hep/hep.h index 8e6e2062..637fc27f 100644 --- a/src/systems/hep/include/mp-units/systems/hep/hep.h +++ b/src/systems/hep/include/mp-units/systems/hep/hep.h @@ -25,6 +25,9 @@ #include #include +template<> +inline constexpr std::optional mp_units::known_first_factor<334'524'384'739> = 334'524'384'739; + namespace mp_units::hep { // energy