Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support three-way comparison on Apple clang/libc++. #56

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

BenKaufmann
Copy link
Contributor

  • libc++ added std::lexicographical_compare_three_way only with version 17. Provide emulation for earlier versions.

@sjanel Thanks for this library. This PR fixes a compilation error from e.g. Xcode_15.0.1 in C++20 mode due to a missing std::lexicographical_compare_three_way in libc++.

* libc++ added std::lexicographical_compare_three_way only with
  version 17. Provide emulation for earlier versions.
include/amc/utility.hpp Outdated Show resolved Hide resolved
* Move emulation of std::lexicographical_compare_three_way to its own
  algorithm.hpp file.
Copy link
Member

@sjanel sjanel left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @BenKaufmann!

@sjanel sjanel merged commit 76b5b6f into AmadeusITGroup:main Apr 16, 2024
25 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.

2 participants