[RFC] std::string(0);
Paolo Carlini
pcarlini@suse.de
Fri Jun 11 17:26:00 GMT 2004
Martin Sebor wrote:
> A conforming implementation is not allowed to reject constructs
> such as std::string (0) just because they might cause undefined
> behavior at runtime. Consider this well-formed program:
>
> #include <string>
> int main () {
> if (0) std::string (0);
> }
Thanks Martin for your message: I wanted to say something vaguely similar
but was not able to find the words (and the example!)
Paolo.
More information about the Libstdc++
mailing list