Core dump constructing a C++ string with NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It would be nice if this would construct an empty string:

  #include <string>
  std::string s(0);

At the moment that gives a core dump.

Is that defined behavior according to the standard?  If not, what
about a g++ enhancement?

Thanks.

Regards.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux