From 1c19796e3ec6548c5940fd063aecc2a3345aefd6 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 13 Oct 2014 13:54:40 +0200 Subject: [PATCH] fix container.hpp to properly use std::next and std::end --- Util/container.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/container.hpp b/Util/container.hpp index b09b74eb8..86e9de31c 100644 --- a/Util/container.hpp +++ b/Util/container.hpp @@ -67,7 +67,7 @@ Function for_each_pair(ForwardIterator begin, ForwardIterator end, Function func while (next != end) { function(*begin, *next); - std::next(begin); std::next(next); + begin = std::next(begin); next = std::next(next); } return function; }