Skip to content

Fix the deprecated std::binary_function in the implementation of the std::sort custom comparator#217

Merged
mvo5 merged 1 commit into
mvo5:masterfrom
amaa-99:90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator
Jul 8, 2026
Merged

Fix the deprecated std::binary_function in the implementation of the std::sort custom comparator#217
mvo5 merged 1 commit into
mvo5:masterfrom
amaa-99:90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator

Conversation

@amaa-99

@amaa-99 amaa-99 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Replaced the implementation with one based on std::function.
(closes amaa-99#91)

@amaa-99

amaa-99 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

p.s. I would have preferred using the std comparators instead, but those operate on std::string parameters (the RPackage name() returns char * instead).

Comment thread common/rpackagelister.cc Outdated
@amaa-99 amaa-99 force-pushed the 90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator branch 2 times, most recently from 46cd730 to 430d500 Compare July 6, 2026 21:22
Comment thread common/rpackagelister.h Outdated
Comment thread common/rpackagelister.cc Outdated
@amaa-99 amaa-99 force-pushed the 90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator branch 2 times, most recently from 3d70d4d to da12987 Compare July 7, 2026 05:26
@mvo5

mvo5 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

This looks fine to me, if @andy128k is also happy I will merge :)

@amaa-99 amaa-99 force-pushed the 90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator branch from da12987 to 267f652 Compare July 7, 2026 09:46
…std::sort custom comparator:

Replaced the implementation with one based on std::function.
@amaa-99 amaa-99 force-pushed the 90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator branch from 267f652 to a4b098a Compare July 7, 2026 09:47

@mvo5 mvo5 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@mvo5 mvo5 merged commit cbb77b1 into mvo5:master Jul 8, 2026
1 check passed
@amaa-99 amaa-99 deleted the 90-fix-the-deprecated-stdbinary_function-in-the-implementation-of-the-stdsort-custom-comparator branch July 8, 2026 08:52
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.

Merge: Fix the deprecated std::binary_function in the implementation of the std::sort custom comparator

3 participants