On lundi, 16 janvier 2017 16.35:47 h CET Brüns, Stefan wrote:
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.
Thanks to the pointers Stefan, it confirm what I've seen the afternoon. wxChar is too much used, abused in old pgadmin3 code, and as said at the beginning the code will not get fixes. So in the meantime, I've be able to incorporate %if in the packaging so only TW will got pgadmin3 compiled with «evil» nostl ... I prefer to spend my free time to get pgAdmin4 ready for consumption :-) -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org