Skip to content

Undo libosrm API break by overloading method response types#5860

Closed
mjjbell wants to merge 1 commit intoProject-OSRM:masterfrom
mjjbell:mbell/libosrm_api
Closed

Undo libosrm API break by overloading method response types#5860
mjjbell wants to merge 1 commit intoProject-OSRM:masterfrom
mjjbell:mbell/libosrm_api

Conversation

@mjjbell
Copy link
Copy Markdown
Member

@mjjbell mjjbell commented Oct 17, 2020

Issue

Removes the breaking libosrm API change by replacing the use of variant response type with method overloading.

This adds a bit of boilerplate to convert to/from the variant response used in plugin code. I avoided templating as I think this would have implications on the use of the pimpl pattern. Perhaps someone can correct me on this.

This also has the added benefit of being explicit about the supported response types for each libosrm API method.

Tasklist

Requirements / Relations

Closes #5741
Closes #5548

@mjjbell mjjbell force-pushed the mbell/libosrm_api branch 5 times, most recently from 9094379 to 06da13d Compare October 18, 2020 02:36
Removes the breaking libosrm API change by replacing the
use of variant response type with method overloading.

This has the added benefit of being explicit about the supported
response types for each libosrm API method.
@mjjbell
Copy link
Copy Markdown
Member Author

mjjbell commented Oct 19, 2020

Replacing with #5861

@mjjbell mjjbell closed this Oct 19, 2020
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.

libosrm breaking change in master after v5.22.0 libosrm interface broken due to public API changes

1 participant