From afe3856990ee1e93a16e251bd0e9febd94b66a5e Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de>
Date: Sat, 16 Feb 2019 14:26:53 +0100
Subject: [PATCH] added method to return shared_ptr to ModelProperties instead
 of reference

---
 Environment/NuclearComposition.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Environment/NuclearComposition.h b/Environment/NuclearComposition.h
index 5f89bd2ca..dee18a446 100644
--- a/Environment/NuclearComposition.h
+++ b/Environment/NuclearComposition.h
@@ -35,15 +35,15 @@ namespace corsika::environment {
     public:
       using value_type = double;
       using iterator_category = std::input_iterator_tag;
-      using pointer = double*;
-      using reference = double&;
+      using pointer = value_type*;
+      using reference = value_type&;
       using difference_type = ptrdiff_t;
 
       WeightProviderIterator(AConstIterator a, BConstIterator b)
           : fAIter(a)
           , fBIter(b) {}
 
-      double operator*() const { return ((*fAIter) * (*fBIter)).magnitude(); }
+      value_type operator*() const { return ((*fAIter) * (*fBIter)).magnitude(); }
 
       WeightProviderIterator& operator++() { // prefix ++
         ++fAIter;
-- 
GitLab