ctype optimization work

Paolo Carlini pcarlini@suse.de
Wed Dec 10 07:56:00 GMT 2003


Jerry Quinn wrote:

> I just looked closer at this. One problem is that you can't build the
> table in the ctype<wchar_t> constructor. There's no way to delay the
> table construction until a derived class constructor finishes
> executing. If you construct the table too soon, that may break a
> derived do_narrow function.

I don't follow, honestly. My idea is really straightforward, identical
to what currently *already* happens for moneypunt and numpunct and
_M_initialize_moneypunct() and _M_initialize_numpunct(). Could you
possibly explain your concerns in better detail?

Paolo.



More information about the Libstdc++ mailing list