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

Replace boost::string_ref with std::string_view #6433

Merged
merged 17 commits into from
Nov 6, 2022

Conversation

DennisOSRM
Copy link
Collaborator

@DennisOSRM DennisOSRM commented Oct 30, 2022

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?

@DennisOSRM DennisOSRM marked this pull request as ready for review November 1, 2022 11:11
@SiarheiFedartsou
Copy link
Member

Nice to see that you are actively contributing again 🚀

@SiarheiFedartsou
Copy link
Member

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 brew install conan instead of python3 -m pip install conan(but it is not recommended as I can see in Conan docs).

@DennisOSRM
Copy link
Collaborator Author

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 brew install conan instead of python3 -m pip install conan(but it is not recommended as I can see in Conan docs).

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); });
Copy link
Member

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…

@DennisOSRM DennisOSRM merged commit aeaf5e0 into master Nov 6, 2022
@DennisOSRM DennisOSRM deleted the replace_boost_stringref branch November 6, 2022 14:54
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.

None yet

2 participants