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

ADL-proof implementation of remaining sorting-related algorithms #4367

Merged
merged 15 commits into from
Feb 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use remove_cvref_t in C++20.
StephanTLavavej committed Feb 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 0f0ce8ca9f5a9625e75b0082332f4d5e4fa07c4b
Original file line number Diff line number Diff line change
@@ -52,9 +52,8 @@ struct tagged_left_selector {
template <class Tag>
struct tagged_zero_equality {
template <class T>
constexpr auto operator()(T&& t) const
-> decltype(std::forward<T>(t) == std::remove_cv_t<std::remove_reference_t<T>>{}) {
return std::forward<T>(t) == std::remove_cv_t<std::remove_reference_t<T>>{};
constexpr auto operator()(T&& t) const -> decltype(std::forward<T>(t) == std::remove_cvref_t<T>{}) {
return std::forward<T>(t) == std::remove_cvref_t<T>{};
}
};