[wx-dev] Re: Improving wxString proposal (Re: #9672: wx 2.9
Ansi/Unicode Combi-wxString)
Hajo Kirchhoff
mailinglists at hajo-kirchhoff.de
Mon Jul 7 02:14:35 PDT 2008
Brian Ravnsgaard Riis wrote:
> final. Don't derive from them. Sooner or later someone will allocate a
> wxCString dynamically, pass it by pointer to std::string and call delete
> on that pointer. This is called Undefined Behavior(tm).
Good point. I never thought about it.
<offtopic>
(tm)? I wonder who registered that as a trademark ;-D?
</offtopic>
> Note that I'm not saying (at present) that I'm against your proposal as
> such. I'm following this discussion with great interest, actually. :-)
Okay, just drop this point from my list of arguments.
Regards
Hajo
More information about the wx-dev
mailing list