Skip to content

Fix C++17 compatibility

Hannes Braun requested to merge fix-c++17 into devel

Both bind2nd and random_shuffle were removed with C++17 and need to be replaced in order for the application to comply with the standard.

At least on macOS when using Clang, this was required to make Spark and rcssserver3d compile again. G++ did not remove those functions with C++17 (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91383). That's probably why nobody noticed earlier.

Edited by Hannes Braun

Merge request reports