[Bug c++/22107] Type checking seems to break with string operator=
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 17 20:17:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-17 20:17 -------
Invalid, and here is why:
std::string s = 1234;
trys to call a constructor and not operator=.
s = 1234; calls operator= where the type is char so 1234 is converted to char and then calls the
operator=.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22107
More information about the Gcc-bugs
mailing list