From 3b0a59c23f412c032bca348073b586cd1dac5d9e Mon Sep 17 00:00:00 2001
From: Sylvester Joosten <sjoosten@anl.gov>
Date: Mon, 13 Jul 2020 16:49:26 -0500
Subject: [PATCH] Bugfix: incorrect use of constexpr qualifier

---
 src/pythia6m/interface/event.hh | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/pythia6m/interface/event.hh b/src/pythia6m/interface/event.hh
index 57784f6..072b21a 100644
--- a/src/pythia6m/interface/event.hh
+++ b/src/pythia6m/interface/event.hh
@@ -24,7 +24,7 @@ struct particle {
   double mass;
 
   particle() = default;
-  
+
   // create a particle from using the global pythia particle index
   particle(const int32_t idx);
 
@@ -61,19 +61,15 @@ struct event {
   event& operator=(const event&) = default;
   event& operator=(event&& rhs);
 
-  constexpr const particle& beam() const {
-    return particles[0];
-  }
-  constexpr const particle& target() const {
-    return particles[1];
-  }
+  const particle& beam() const { return particles[0]; }
+  const particle& target() const { return particles[1]; }
 
   // print a LUND event record for all final state particles
   void print(std::ostream& os,
              std::function<bool(const particle&)> selector) const;
 };
 
-// e+p leptoproduction 
+// e+p leptoproduction
 struct ep_event : event {
   ROOT::Math::XYZTVector q;
   double Q2;
@@ -105,7 +101,6 @@ struct photo_event : event {
   }
 };
 
-
-} // ns pythia6m
+} // namespace pythia6m
 
 #endif
-- 
GitLab