On Sonntag, 15. Januar 2017 21:31:41 CET Jan Engelhardt wrote:
On Sunday 2017-01-15 19:15, Bruno Friedmann wrote:
ps : anybody can (for my knowledge) point me to some resource or have a quick résumé about -nostl versus stl ?
nostl is discouraged. It uses the old wxwindows hand-made wxString class with somewhat loose (type) conversion rules, which in the past revealed that e.g. the Audacity audio editor has a character set conversion problems and lifetime issues ("use-after-free", potential to produce garbage or crash).
stl, alas, has wxString be based off std::string instead.
Unfortunately several consumers of wxWidgets will throw compile time errors due to missing default conversions [1] (these conversions are not exactly missing, but left out to enforce explicit conversion). So for e.g. Audacity, this problem will likely be solved upstream, as there *is* an active upstream, other may be left out (e.g. perl-Wx, which seems to be dead). Kind regards, Stefan [1] http://docs.wxwidgets.org/3.1/classwx_string.html#string_conv Note: If you built wxWidgets with wxUSE_STL set to 1, the implicit conversions to both narrow and wide C strings are disabled and replaced with implicit conversions to std::string and std::wstring. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org