Re: assign to std::string from int causes NO ERROR

2003-06-11 Thread Phil Edwards
On Wed, Jun 11, 2003 at 05:31:58PM -0300, [EMAIL PROTECTED] wrote: > //string z=2; // OK: does NOT compile Note that although you write '=' here, you are still constructing a new string object. There is no basic_string constructor which takes an integer, so it does not compile. > x[key] = 2

assign to std::string from int causes NO ERROR

2003-06-11 Thread amaschio
>Submitter-Id: net >Originator:Agostinho Maschio >Organization: Reckon Engenharia de Sistemas Ltda >Confidential: no >Synopsis: assign to std::string from int causes NO ERROR >Severity: serious >Priority: medium >Category: c++ >Class: