
9 Mar
2008
9 Mar
'08
4:58 p.m.
Carlos Rafael Giani: ...
template < typename ValueType, unsigned int Size > std::ostream& operator << (std::ostream &out, std::tr1::array < ValueType, Size > const &array)
In general, when defining an overloaded operator<< for a type X, this definition needs to go in the namespace of X in order to be found by argument-dependent lookup. So depending on whether std::tr1::array is real or an alias for boost::array, you need to put the above operator<< in namespace std::tr1 or namespace boost, respectively.