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::optional with std::optional #6611

Merged
merged 11 commits into from
May 22, 2024

Conversation

mugr1x
Copy link
Contributor

@mugr1x mugr1x commented Apr 20, 2023

Issue

This PR target at (partially) resolving #6551.
That is exchanging boost::optional for std::optional from C++17.
As mentioned elsewhere (#6429 (comment))
boost::spirit::qi does not work with std::optional, however boost::spirit::x3 does.
This PR does NOT refactor these parts of the codebase. To my knowledge there are three parsers written with ::qi (and ::phoenix) and at least the time validator and CSV parser I was abled to at least work on. (not included in this PR)
However the core API of /server alses uses ::qi and changing this would be a more peculiar if not a bad decision (for now).
Note because of failing CI this is #6593 reopened.

Tasklist

  • [ x] CHANGELOG.md entry
  • [ x] review
  • [ x] adjust for comments
  • [ x] cherry pick to release branch

@mugr1x mugr1x changed the title Final merge commit Replace boost::optional with std::optional Apr 20, 2023
Mugr Rex added 2 commits April 24, 2023 19:10
Must have been lost while concating everything into one commit
Seems like my local build is ok, but in CI
the references to engine are still there
so I am reverting code in /nodejs to master
Copy link
Member

@mjjbell mjjbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rectify the src/nodejs changes. Otherwise, seems fine.

src/nodejs/json_v8_renderer.hpp Outdated Show resolved Hide resolved
src/guidance/intersection_handler.cpp Outdated Show resolved Hide resolved
@SiarheiFedartsou SiarheiFedartsou merged commit efe6840 into Project-OSRM:master May 22, 2024
20 of 21 checks passed
@DennisOSRM
Copy link
Collaborator

👍🏽

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

4 participants