ola icon indicating copy to clipboard operation
ola copied to clipboard

Replace a few more deprecated pre-C++11 styles

Open aroffringa opened this issue 2 years ago • 1 comments

The functions std::binary_function and std::mem_fun have been deprecated in C++11, and are removed in C++20. This pull request replaces them with more modern code. Together with #1889 this removes all warnings on recent compilers. This one is fairly small.

aroffringa avatar Aug 03 '23 18:08 aroffringa

Wow, the syntax in StringUtils.cpp needs a bit getting used to. On the other hand, what we had before also was not that easy to read. I'd say: As long as this doesn't break stuff, reducing compiler warnings is a good thing!

kripton avatar Feb 26 '24 21:02 kripton