diff --git a/corsika/framework/stack/SecondaryView.hpp b/corsika/framework/stack/SecondaryView.hpp
index 1a58b219afa23511ee34ce083cbc69968d0458f3..9ffaf150582b081cacff72a4d021403353b29dcb 100644
--- a/corsika/framework/stack/SecondaryView.hpp
+++ b/corsika/framework/stack/SecondaryView.hpp
@@ -89,7 +89,7 @@ namespace corsika {
         stack_value_iterator;
 
     typedef ConstStackIteratorInterface<
-        std::remove_reference_t<TStackDataType>, TParticleInterface,
+        typename std::remove_reference<TStackDataType>::type, TParticleInterface,
         MSecondaryProducer, inner_stack_value_type>
         const_stack_value_iterator;
     /// @}
@@ -102,6 +102,7 @@ namespace corsika {
         typename std::remove_reference<TStackDataType>::type, TParticleInterface,
         MSecondaryProducer, view_type>
         const_stack_view_iterator;
+
     /**
      * this is the full type of the declared TParticleInterface:
      */