std::basic_string<> and threads - patch
Ryszard Kabatek
rumcajs@gmx.net
Sat Apr 1 00:00:00 GMT 2000
I tested my patch again past weekend and I must say it does not work :-(.
It is not possible to disable the reference counting this way I did in my
patch, so please do not aply it.
In my previous tests I overlooked the simplest case if one creates
a empty string (the static member _S_empty_rep_storage is used).
It is possible to use a static _Rep object without changing its members,
but it would require a major rewriting of the _Rep class.
I could do it...
BTW. The _Rep members _M_size and _M_capacity are invisible in a debugger.
I think it would be better to have them in basic_string.
--
Ryszard Kabatek
Sent through Global Message Exchange - http://www.gmx.net
More information about the Libstdc++
mailing list