[Bug c++/26512] g++ doesn't recognize user-defined operator<<(ostream, const pair<int, double> &)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 3 23:10:00 GMT 2006



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-03-03 23:10 -------
(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:

This does not match what you have in the source:
extern std::ostream &operator <<(std::ostream &f, const M::value_type &p);
M::value_type here is either an user defined type, A or a fundamental type.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26512



More information about the Gcc-bugs mailing list