Sorry about this - I got lazy and used c_str() incorrectly in some sample
code for Stephen:

basic_string::c_str
const E *c_str() const;
The member function returns a pointer to a nonmodifiable C string
constructed by adding a terminating null element (E(0)) to the controlled
sequence. Calling any non-const member function for *this can invalidate the
pointer.

Jeff
 

Reply via email to