Здравствуйте, Abulafia, Вы писали:
Вот так у меня скомпилилось
#include <iostream>
#include <set>
#include <vector>
template<class T>
std::ostream&
outiter (std::ostream& st, typename std::vector<T>::const_iterator i)
{
return st << *i;
}
typedef std::vector<int> seq_t;
typedef seq_t::const_iterator iter_t;
typedef std::set<iter_t> set_of_iter_t;
set_of_iter_t s;
int main()
{
seq_t vec;
vec.push_back(1);
vec.push_back(2);
vec.push_back(3);
s.insert(vec.begin());
outiter<int>(std::cout, *s.begin());
}