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

std::equal is not necessarily constexpr in C++17 (only C++20) #37

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Sep 19, 2023

std::equal is not necessarily constexpr in C++17 (only C++20) which means that PR #35 broke idna technically.

See https://en.cppreference.com/w/cpp/algorithm/equal

This PR keeps std::equal, but removes the constexpr qualifiers on begins_with

@lemire lemire requested a review from anonrig September 19, 2023 13:48
@anonrig anonrig force-pushed the dlemire/fix_std_equal_not_constexpr branch from 5cdf3f2 to 9c995f5 Compare September 19, 2023 19:58
@anonrig anonrig merged commit 3c8be01 into main Sep 19, 2023
@anonrig anonrig deleted the dlemire/fix_std_equal_not_constexpr branch September 19, 2023 19:58
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