fix container.hpp to properly use std::next and std::end

This commit is contained in:
Dennis Luxen 2014-10-13 13:54:40 +02:00
parent 23c79f5cc9
commit 1c19796e3e

View File

@ -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;
}