Remove wxUSE_STL which is not really used any longer
wxString is always based on std::[w]string since 2c0c727f49 (Remove wx
own wxStringImpl implementation, 2022-11-16) and all containers use
standard containers by default too now -- and there is a separate
wxUSE_STD_CONTAINERS for this anyhow.
The only remaining use of wxUSE_STL was as the default value for
wxUSE_STD_STRING_CONV_IN_WXSTRING option, but it's not really needed
for this neither, and this option can just be set to 0 by default.
Also add wxUSE_CHAR_CONV_IN_WXSTRING which can now be set to 0 too to
disable all unwanted implicit conversions (even "safe" ones, to wide
strings, in addition to the unsafe ones to narrow strings that could be
already disabled with wxUSE_UNSAFE_WXSTRING_CONV) to allow people who
don't want to have any implicit conversions at all to do it.
Keep --enable-stl configure option for compatibility, but warn if it is
used to tell people that it is not needed any longer.
This commit is contained in:
parent
d65eed50fa
commit
35c35c235e
22 changed files with 315 additions and 248 deletions
|
|
@ -82,8 +82,6 @@ wx_option(wxUSE_NO_RTTI "disable RTTI support" OFF)
|
|||
|
||||
# STL options
|
||||
wx_option(wxUSE_STD_IOSTREAM "use standard C++ streams" ON)
|
||||
wx_option(wxUSE_STL "use standard C++ classes for everything" OFF)
|
||||
set(wxTHIRD_PARTY_LIBRARIES ${wxTHIRD_PARTY_LIBRARIES} wxUSE_STL "use C++ STL classes")
|
||||
wx_option(wxUSE_STD_CONTAINERS "use standard C++ container classes" ON)
|
||||
|
||||
wx_option(wxUSE_UNICODE_UTF8 "use UTF-8 representation for strings" OFF)
|
||||
|
|
@ -92,6 +90,8 @@ wx_dependent_option(wxUSE_UTF8_LOCALE_ONLY "only support UTF-8 locales in UTF-8
|
|||
if(NOT WIN32)
|
||||
wx_option(wxUSE_VISIBILITY "use of ELF symbols visibility")
|
||||
endif()
|
||||
wx_option(wxUSE_CHAR_CONV_IN_WXSTRING "provide implicit conversions to const wchar_t* and const char* in wxString" ON)
|
||||
wx_option(wxUSE_STD_STRING_CONV_IN_WXSTRING "provide implicit conversions to std::wstring and std::string in wxString" OFF)
|
||||
wx_option(wxUSE_UNSAFE_WXSTRING_CONV "provide unsafe implicit conversions in wxString to const char* or std::string")
|
||||
wx_option(wxUSE_REPRODUCIBLE_BUILD "enable reproducable build" OFF)
|
||||
|
||||
|
|
|
|||
|
|
@ -114,8 +114,6 @@
|
|||
|
||||
#cmakedefine01 wxDIALOG_UNIT_COMPATIBILITY
|
||||
|
||||
#cmakedefine01 wxUSE_UNSAFE_WXSTRING_CONV
|
||||
|
||||
#cmakedefine01 wxUSE_REPRODUCIBLE_BUILD
|
||||
|
||||
|
||||
|
|
@ -154,12 +152,16 @@
|
|||
#cmakedefine01 wxUSE_PRINTF_POS_PARAMS
|
||||
|
||||
|
||||
#cmakedefine01 wxUSE_STL
|
||||
|
||||
#cmakedefine01 wxUSE_STD_CONTAINERS
|
||||
|
||||
#cmakedefine01 wxUSE_STD_IOSTREAM
|
||||
#define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
|
||||
|
||||
|
||||
#cmakedefine01 wxUSE_UNSAFE_WXSTRING_CONV
|
||||
|
||||
#cmakedefine01 wxUSE_CHAR_CONV_IN_WXSTRING
|
||||
|
||||
#cmakedefine01 wxUSE_STD_STRING_CONV_IN_WXSTRING
|
||||
|
||||
|
||||
#cmakedefine01 wxUSE_LONGLONG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue