Core dump constructing a C++ string with NULL

Ian Lance Taylor iant@google.com
Fri Jan 14 17:38:00 GMT 2011


Tom Browder <tom.browder@gmail.com> writes:

> 2.  Isn't a '\0' an empty string in the string context?

I thought you were asking about std::string(0), which is quite a
different matter from std::string('\0').

Ian



More information about the Gcc-help mailing list