I\'m trying to iterate over a boost::fusion vector using:
typedef typename fusion::result_of::begin::type t_iter; std::cout << distance(begi
next doesn't actually advance the iterator, it just returns the next one.
next
This can be seen in the docs, as the function next takes a constant argument, meaning it can't possibly actually modify the iterator:
template< typename I > typename result_of::next::type next(I const& i); ^^^^^