-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Replace boost::string_ref with std::string_view #6433
Conversation
Nice to see that you are actively contributing again 🚀 |
JFYI there is some annoying issue with Conan installation on macOS executors on CI - I am trying to fix it now. Workaround is to use |
Thanks for letting me know. I'll rebase the PR once the bug is fixed, then. |
std::string str; | ||
str.reserve(view.size()); | ||
std::transform( | ||
str.begin(), str.end(), str.begin(), [](unsigned char c) { return std::tolower(c); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have to use std::back_inserter here…
Issue
What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here.
Please read our documentation on release and version management.
If your PR is still work in progress please attach the relevant label.
Tasklist
Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?