------- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-06 20:04 ------- > s1 is "surprise"
No it is not. std::cout << s1 << std::endl; Calls s1.operator const char* and not s1.operator<< . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33314
pinskia at gcc dot gnu dot org Thu, 06 Sep 2007 13:04:18 -0700
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-06 20:04 ------- > s1 is "surprise"
No it is not. std::cout << s1 << std::endl; Calls s1.operator const char* and not s1.operator<< . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33314