IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6565119a authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Fix forwarding in LongitudinalProfile.

parent 6bc88b60
No related branches found
No related tags found
1 merge request!371Additional outputs ported to new architecture
......@@ -14,13 +14,14 @@
#include <cmath>
#include <iomanip>
#include <limits>
#include <utility>
namespace corsika {
template <typename TOutput>
template <typename... TArgs>
inline LongitudinalProfile<TOutput>::LongitudinalProfile(TArgs... args)
: TOutput(args...) {}
inline LongitudinalProfile<TOutput>::LongitudinalProfile(TArgs&&... args)
: TOutput(std::forward<TArgs>(args)...) {}
template <typename TOutput>
template <typename TParticle, typename TTrack>
......
......@@ -41,7 +41,7 @@ namespace corsika {
public:
template <typename... TArgs>
LongitudinalProfile(TArgs... args);
LongitudinalProfile(TArgs&&... args);
template <typename TParticle, typename TTrack>
ProcessReturn doContinuous(
......
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