diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/src/RangedItr.h b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/src/RangedItr.h
index a633ddd37925aeba8f0b64aa0acb244538819eaa..123f98e703509ccef1a9ed541cd98aaed4db437e 100644
--- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/src/RangedItr.h
+++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/src/RangedItr.h
@@ -1,12 +1,12 @@
 /*
-  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef DERIVATIONFRAMEWORKTRIGGER_RANGEDITR_H
 #define DERIVATIONFRAMEWORKTRIGGER_RANGEDITR_H
 
-#include <vector>
-#include <iterator>
+
+#include <iterator> //std::distance, iterator_traits
 #include <type_traits>
 
 namespace DerivationFramework { namespace TriggerMatchingUtils {
@@ -48,7 +48,7 @@ template <typename T>
         ++m_position;
         return *this;
       }
-      RangedItr& operator++(int) {
+      RangedItr operator++(int) {
         RangedItr ret = *this;
         ++m_position;
         return ret;
@@ -58,7 +58,7 @@ template <typename T>
         --m_position;
         return *this;
       }
-      RangedItr& operator--(int) {
+      RangedItr operator--(int) {
         RangedItr ret = *this;
         --m_position;
         return ret;