From 2e4e5eb0e69b44e857a76ea010c86015f1389b7f Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Mon, 23 Nov 2020 14:12:35 +0100
Subject: [PATCH] coding conventions

---
 corsika/detail/framework/core/ParticleProperties.inl | 2 +-
 corsika/framework/core/ParticleProperties.hpp        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/corsika/detail/framework/core/ParticleProperties.inl b/corsika/detail/framework/core/ParticleProperties.inl
index be54dc184..731efc1dd 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 801447944..d5620930d 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
-- 
GitLab