Skip to content

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

Merged
nomis52 merged 1 commit intoOpenLightingProject:masterfrom
aroffringa:remove-deprecated-uses
Mar 23, 2026
Merged

Replace a few more deprecated pre-C++11 styles#1890
nomis52 merged 1 commit intoOpenLightingProject:masterfrom
aroffringa:remove-deprecated-uses

Conversation

@aroffringa
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

@aroffringa aroffringa force-pushed the remove-deprecated-uses branch from 8aae4c5 to d82b3f2 Compare March 21, 2026 18:26
@aroffringa
Copy link
Copy Markdown
Contributor Author

@nomis52 I've rebased the branch on master, it should be ready to be merged. Do you have access for that?

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 d82b3f2 to 92f2933 Compare March 23, 2026 10:58
@nomis52 nomis52 merged commit 597672a into OpenLightingProject:master Mar 23, 2026
8 of 22 checks passed
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.

4 participants