diff --git a/corsika/detail/framework/core/ParticleProperties.inl b/corsika/detail/framework/core/ParticleProperties.inl index be54dc1840a40194d2485c15ade464a5eee61c90..731efc1dd04457a171771f796a34bcdf084e65c6 100644 --- a/corsika/detail/framework/core/ParticleProperties.inl +++ b/corsika/detail/framework/core/ParticleProperties.inl @@ -33,7 +33,7 @@ namespace corsika { return get_charge_number(code) * constants::e; } - constexpr std::string_view get_name(Code const code) { + std::string_view constexpr get_name(Code const code) { return particle::detail::names[static_cast<CodeIntType>(code)]; } diff --git a/corsika/framework/core/ParticleProperties.hpp b/corsika/framework/core/ParticleProperties.hpp index 801447944b722be95307baf1cfb0fc8ecb999853..d5620930de85e672c143dc636c52b56cfe54dc5c 100644 --- a/corsika/framework/core/ParticleProperties.hpp +++ b/corsika/framework/core/ParticleProperties.hpp @@ -47,7 +47,7 @@ namespace corsika { //! Particle code according to PDG, "Monte Carlo Particle Numbering Scheme" PDGCode constexpr get_PDG(Code); - constexpr std::string_view get_name(Code); //!< name of the particle as string + std::string_view constexpr get_name(Code); //!< name of the particle as string TimeType constexpr get_lifetime(Code); //!< lifetime //! true iff the particle is a hard-coded nucleus or Code::Nucleus