N
Noah Roberts
template < typename T >
std::istream & operator >> (std::istream & in, std:air<T,T> & p)
{
in >> p.first >> p.second;
return in;
}
....
std::istream_iterator< std:air<size_type, size_type> >
in_beg(std::cin), in_end;
....
fails to compile. Wrapping the operator >> for the pair in namespace
std {} works. Since you're not "allowed" to insert stuff into
namespace std why is that seemingly required and how could this be done
without that?
std::istream & operator >> (std::istream & in, std:air<T,T> & p)
{
in >> p.first >> p.second;
return in;
}
....
std::istream_iterator< std:air<size_type, size_type> >
in_beg(std::cin), in_end;
....
fails to compile. Wrapping the operator >> for the pair in namespace
std {} works. Since you're not "allowed" to insert stuff into
namespace std why is that seemingly required and how could this be done
without that?