Skip to content

Conversation

aroffringa
Copy link
Contributor

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.

Copy link
Member

@DaAwesomeP DaAwesomeP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really familiar with std::binary_function so I can't speak to those. I suppose we would see compile errors if it broke any typing.

Well I guess there isn't any more fun in the code! (sarcasm)

@aroffringa aroffringa force-pushed the remove-deprecated-uses branch from 61256d9 to c53a932 Compare August 21, 2023 13:51
@aroffringa aroffringa force-pushed the remove-deprecated-uses branch from c53a932 to 782b768 Compare February 3, 2024 23:11
@kripton
Copy link
Member

kripton commented Feb 26, 2024

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!

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 OpenLightingProject#1889 this removes all warnings on recent compilers.
@aroffringa aroffringa force-pushed the remove-deprecated-uses branch from 1beec8a to 8aae4c5 Compare August 1, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants