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

is_permutation range version missing #98

Open
allopislozano opened this issue Dec 12, 2019 · 0 comments
Open

is_permutation range version missing #98

allopislozano opened this issue Dec 12, 2019 · 0 comments

Comments

@allopislozano
Copy link

allopislozano commented Dec 12, 2019

There is no boost::ranges::is_permutation

Passing two ranges to boost::algorithm::is_permutation yields this error. The first parameter is correctly matched and the second parameter is incorrectly interpreted as a ForwardIterator without any BOOST_CONCEPT checks:
https://godbolt.org/z/TCE8Xm

It is also surprising that an algorithm defined in boost::algorithm takes a range as a first parameter and an iterator as the second parameter

Shouldn't there be a ranges version that takes two ranges? upcoming c++20 std::ranges::is_permutation takes two ranges as params:
https://eel.is/c++draft/alg.is.permutation

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

No branches or pull requests

1 participant