From 7f7e6929adf14b725e71adcfd3163150a9b8265a Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Wed, 28 Feb 2018 10:54:45 +0100 Subject: [PATCH] avoid usage of stringstream move for older compilers - in Geant4InputHandling.cpp --- DDG4/src/Geant4InputHandling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/src/Geant4InputHandling.cpp b/DDG4/src/Geant4InputHandling.cpp index e0ae2dc4d..3c711c0ef 100644 --- a/DDG4/src/Geant4InputHandling.cpp +++ b/DDG4/src/Geant4InputHandling.cpp @@ -431,7 +431,7 @@ int dd4hep::sim::generatePrimaries(const Geant4Action* caller, auto const* primHandler = dynamic_cast<const Geant4PrimaryHandler*>(caller); auto const& rejectPDGs = primHandler ? primHandler->m_rejectPDGs : std::set<int>(); - caller->debug("Rejecting PDGs: %s", [&rejectPDGs](){ std::stringstream str; for (int i: rejectPDGs) { str << i << ", "; } return str;}().str().c_str()); + caller->debug("Rejecting PDGs: %s", [&rejectPDGs]{ std::stringstream str; for (int i: rejectPDGs) { str << i << ", "; } return str.str();}().c_str()); if ( interaction->locked ) { caller->abortRun("Locked interactions may not be used to generate primaries!", -- GitLab