Maybe
?Code:template<typename T> std::ostream& A<T>::B::operator << (std::ostream& os, const typename A<T>::B& b) { return os<<"an instance of B"; }
Maybe
?Code:template<typename T> std::ostream& A<T>::B::operator << (std::ostream& os, const typename A<T>::B& b) { return os<<"an instance of B"; }
Last edited by Elysia; 11-09-2007 at 03:41 PM.
Thank you for your answer.
However it can't help me since the operator must not be a member of the struct B
(the operator takes ostream as the left operand).
Alex