Remove "basic STL functionality" configure and CMake checks
This check didn't work in configure when using C++17 or later, as std::bind2nd() is removed in C++17 and so was worse than useless as it actually prevented --enable-stl from working. And while it was only done when using C++98 in CMake, it still seems pretty useless there too as there should be no environments in which basic stuff like std::vector<> or std::find_if() is not available. So just remove it entirely.
This commit is contained in:
@@ -132,21 +132,6 @@ if(NOT MSVC)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_STL AND CMAKE_CXX_STANDARD EQUAL 98)
|
||||
wx_check_cxx_source_compiles("
|
||||
std::vector<int> moo;
|
||||
std::list<int> foo;
|
||||
std::vector<int>::iterator it =
|
||||
std::find_if(moo.begin(), moo.end(),
|
||||
std::bind2nd(std::less<int>(), 3));"
|
||||
wxTEST_STL
|
||||
string functional algorithm vector list
|
||||
)
|
||||
if(NOT wxTEST_STL)
|
||||
message(FATAL_ERROR "Can't use wxUSE_STL as basic STL functionality is missing")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
wx_check_cxx_source_compiles("
|
||||
std::string foo, bar;
|
||||
foo.compare(bar);
|
||||
|
Reference in New Issue
Block a user