[Bug 939434] New: X11:wxWidgets/wxWidgets-3_0: Bug --(dis/en)able-stl
http://bugzilla.opensuse.org/show_bug.cgi?id=939434 Bug ID: 939434 Summary: X11:wxWidgets/wxWidgets-3_0: Bug --(dis/en)able-stl Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: sbrabec@suse.com Reporter: novell@tower-net.de QA Contact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- Hi, what's the idea behind enable-stl in the build configuration? It seems to be not fully compatible with standard disable-stl... http://docs.wxwidgets.org/trunk/overview_container.html#overview_container_s... Additional the implicit conversion of wxString http://docs.wxwidgets.org/trunk/classwx_string.html (the 2nd note) is different. So code which compiles with disable-stl, need not to compile with enable-stl. Thanks -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c1
Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c2
--- Comment #2 from Jan Engelhardt
Additional the implicit conversion of wxString http://docs.wxwidgets.org/trunk/classwx_string.html (the 2nd note) is different.
"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."
Well, consider avoiding functions that change behavior between different, such as the implicit conversions from wxString to char*. Use c_str instead, which should work equally well in a STL WX as in an old-style WX. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c3
Markus Kolb
From http://docs.wxwidgets.org/trunk/overview_container.html: "For historical reasons, wxWidgets uses custom container classes internally. This was unfortunately unavoidable during a long time when the standard library wasn't widely available and can't be easily changed even now that it is for compatibility reasons. If you are building your own version of the library and don't care about compatibility nor slight (less than 5%) size penalty imposed by the use of STL classes, you may choose to use the "STL" build of wxWidgets in which these custom classes are replaced with their standard counterparts and only read the section STL Build explaining how to do it."
Sounds like they would welcome STL usage but have the burden of compatibility. But why they don't default to STL? My intention was to get these issues to your knowledge... I can live with the current situation. ;-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c4
Jan Engelhardt
Sounds like they would welcome STL usage but have the burden of compatibility. But why they don't default to STL?
Well, some form compatibility probably. I think people should expect STL builds the same way they have to expect Unicode builds, both are the "big knobs", and very different from one-shot things like --disable-gauge. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c5
--- Comment #5 from Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=939434
http://bugzilla.opensuse.org/show_bug.cgi?id=939434#c6
--- Comment #6 from Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com