From c41b83c38badd36147bb72a1f791ba518e2dc935 Mon Sep 17 00:00:00 2001
From: Jean-Marco Alameddine <jean-marco.alameddine@udo.edu>
Date: Mon, 30 Jan 2023 23:15:29 +0100
Subject: [PATCH] add missing constexpr to SwitchProcessSequence.inl

---
 corsika/detail/framework/process/SwitchProcessSequence.inl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/corsika/detail/framework/process/SwitchProcessSequence.inl b/corsika/detail/framework/process/SwitchProcessSequence.inl
index 307da2e00..05b72c0c5 100644
--- a/corsika/detail/framework/process/SwitchProcessSequence.inl
+++ b/corsika/detail/framework/process/SwitchProcessSequence.inl
@@ -233,7 +233,7 @@ namespace corsika {
           return A_.getCrossSection(projectile, projectile.getPID(),
                                     {projectile.getEnergy(), projectile.getMomentum()});
         }
-      } else if (process1_type::is_process_sequence) {
+      } else if constexpr (process1_type::is_process_sequence) {
         return A_.getCrossSection(projectile, targetId, targetP4);
       }
 
@@ -252,7 +252,7 @@ namespace corsika {
         } else {
           return B_.getCrossSection(projectile, targetId, targetP4);
         }
-      } else if (process2_type::is_process_sequence) {
+      } else if constexpr (process2_type::is_process_sequence) {
         return B_.getCrossSection(projectile, targetId, targetP4);
       }
     }
-- 
GitLab