IAP GITLAB

Skip to content
Snippets Groups Projects
Commit c41b83c3 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine
Browse files

add missing constexpr to SwitchProcessSequence.inl

parent 3cd283ef
No related branches found
No related tags found
1 merge request!470Wrong configuration of electromagnetic models in examples
Pipeline #9646 passed
...@@ -233,7 +233,7 @@ namespace corsika { ...@@ -233,7 +233,7 @@ namespace corsika {
return A_.getCrossSection(projectile, projectile.getPID(), return A_.getCrossSection(projectile, projectile.getPID(),
{projectile.getEnergy(), projectile.getMomentum()}); {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); return A_.getCrossSection(projectile, targetId, targetP4);
} }
...@@ -252,7 +252,7 @@ namespace corsika { ...@@ -252,7 +252,7 @@ namespace corsika {
} else { } else {
return B_.getCrossSection(projectile, targetId, targetP4); 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); return B_.getCrossSection(projectile, targetId, targetP4);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment