------- Comment #10 from bangerth at dealii dot org 2006-03-08 04:43 ------- (In reply to comment #4) > I looked at your link and at issue 197. I don't see how this applies to my bug > report, especially in connection with _user defined_ types. What I don't > understand is, why does g++ handle builtin types different than user defined > types. e.g: > > operator<<(ostream, const pair<int, double> &) > vs. > operator<<(ostream, const pair<int, struct A> &)
Because user defined types are associated with a namespace (in which the compiler can then lookup functions, if one of its arguments is from that namespace), whereas builtin types have no associated namespace. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26512