[wx-dev] Re: wxString(s.c_str()) thread safety (was Re: wxString
threadsafe)
Hajo Kirchhoff
mailinglists at hajo-kirchhoff.de
Fri May 2 06:31:34 PDT 2008
Alan,
I thought about it. Actually one would only have to define wxStringBase
or perhaps even wxStringData. I certainly would like that.
But at the moment I don't have time to search for a proper solution, so
I simply searched and replaced wxString with std::string. Luckily I
did't use too many wxString specific methods and was able to replace the
few remaining ones such as MakeUpper() with boost::algorithm methods.
But I think thats the way to go.
Best regards
Hajo
Alan Shouls schrieb:
> Hi Hajo,
>
>> The only viable solution for me is to replace every wxString instance
>> with std::basic_string<>.
>
> Are you able to define your own wxString that is based on
> std::basic_string<> and use that - and so minimise the changes that you
> need to make to your code. Also a solution like this might be of
> interest to a larger audience.
>
> Best regards
>
> Alan Shouls
>
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
>
More information about the wx-dev
mailing list