Check that C++11 is available and remove tests for it

Don't bother checking for various C++11 features that are available in
all C++11 compilers.

Also assume that std::exception_ptr is available in all still supported
MinGW versions and remove checks for it too (see #16634).

Further simplifications remain possible, this is just the first step.
This commit is contained in:
Vadim Zeitlin 2022-10-07 18:07:04 +02:00
parent 73869d37fd
commit 6bbfdb157e
15 changed files with 45 additions and 420 deletions

View file

@ -4176,8 +4176,6 @@ wxDEFINE_ALL_COMPARISONS(const char *, const wxCStrData&, wxCMP_CHAR_CSTRDATA)
// Implement hashing using C++11 std::hash<>.
// ----------------------------------------------------------------------------
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(10)
// Don't do this if ToStdWstring() is not available. We could work around it
// but, presumably, if using std::wstring is undesirable, then so is using
// std::hash<> anyhow.
@ -4199,8 +4197,6 @@ namespace std
#endif // wxUSE_STD_STRING
#endif // C++11
// ---------------------------------------------------------------------------
// Implementation only from here until the end of file
// ---------------------------------------------------------------------------