Здравствуйте, korzhik, Вы писали:
>как всегда в boost'е нашлось решение:
K>K>#include <algorithm>
K>#include <iostream>
K>#include <iterator>
K>#include <vector>
K>//#include "boost/detail/iterator.hpp"
#include "boost/iterator/iterator_traits.hpp" // лучше так
K>
template<
typename Iter>
K>
void print(Iter first, Iter last)
K>{
K>
typedef typename boost::detail::iterator_traits<Iter>::value_type T;
K> std::cout << std::endl;
K>}
K>
void main()
K>{
K> std::list<
int> v;
K> print(v.begin(),v.end());
K>}
K>