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

Porting Rust implementation to C++ #38

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Porting Rust implementation to C++ #38

merged 1 commit into from
Feb 24, 2021

Conversation

VeaaC
Copy link
Contributor

@VeaaC VeaaC commented Feb 16, 2021

Solves #37

Still missing: CLI app + shared testing framework

@VeaaC VeaaC force-pushed the veaac/cpp_revamp branch 2 times, most recently from a8f1cf4 to e9c41e2 Compare February 16, 2021 10:54
cpp/include/hf/flexpolyline.h Outdated Show resolved Hide resolved
@VeaaC VeaaC force-pushed the veaac/cpp_revamp branch 2 times, most recently from f6a8288 to bab785f Compare February 17, 2021 12:33
@VeaaC VeaaC changed the title WIP: Porting Rust implementation to C++ Porting Rust implementation to C++ Feb 17, 2021
@VeaaC
Copy link
Contributor Author

VeaaC commented Feb 17, 2021

@lene should be ready for review now. Produces same results as Rust impl, and checks out against the global test-data.

@VeaaC VeaaC mentioned this pull request Feb 19, 2021
Copy link
Contributor

@lene lene left a comment

Choose a reason for hiding this comment

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

Overall I'd say I don't like the Polyline = std::variant<Polyline2d, Polyline3d> definition and the "switch on type" semantics that it brings, and I am not sure this is a good way to go for a reference implementation.
That said, this is a significant improvement over the old implementation already and I leave it to you whether you want to invest the work to change the implementation. Or maybe you have other reasons to keep it this way.

cpp/include/hf/flexpolyline.h Show resolved Hide resolved
cpp/include/hf/flexpolyline.h Show resolved Hide resolved
cpp/src/cli.cpp Outdated Show resolved Hide resolved
cpp/src/cli.cpp Show resolved Hide resolved
Signed-off-by: Christian Vetter <christian.vetter@here.com>
@VeaaC VeaaC merged commit 0d957df into master Feb 24, 2021
@VeaaC VeaaC deleted the veaac/cpp_revamp branch February 24, 2021 13:50
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