clang 8.0.0 on linux targetting osx64 (with OSX 10.13 SDK): failed
The reason it is failing with clang is that std::bind2nd was deprecated in C++14 and removed in C++17. The other removed features are not used in wxWidgets and std::bind2nd is used only 2 times in a single file src/common/arrstr.cpp.
The easiest would be to replace it by a lambda but this is post C++11 and I suspect we would like to keep compiling with C++03.
Here is an example of a workaround used in the same file:
Issue migrated from trac ticket # 18458
component: base | priority: normal | resolution: invalid
2019-08-07 07:40:11: ufospoke created the issue
I tried to compile wxWidgets with
-std=c++17
.The reason it is failing with clang is that
std::bind2nd
was deprecated in C++14 and removed in C++17. The other removed features are not used in wxWidgets andstd::bind2nd
is used only 2 times in a single filesrc/common/arrstr.cpp
.The easiest would be to replace it by a lambda but this is post C++11 and I suspect we would like to keep compiling with C++03.
Here is an example of a workaround used in the same file:
We could use the same trick here.