-
Notifications
You must be signed in to change notification settings - Fork 6
Fix compilation failure with Boost 1.90.0 #11
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,3 +33,4 @@ | |
| .DS_Store | ||
| *.tmp | ||
| .vscode/settings.json | ||
| _codeql_detected_source_root | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,6 @@ | |
| #include <boost/geometry.hpp> | ||
| #include <boost/geometry/geometries/point_xy.hpp> | ||
| #include <boost/geometry/geometries/polygon.hpp> | ||
| #include <boost/geometry/multi/geometries/multi_point.hpp> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why just remove the include? should
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. VoronoiUtils.cpp doesn't actually use any multi_point types in its code, so the include was unnecessary and could be safely removed. The old include path was causing the compilation failure, but since the file doesn't use multi_point, adding the new path would just add an unused header. |
||
| #include <boost/polygon/voronoi.hpp> | ||
| #include <boost/polygon/voronoi_builder.hpp> | ||
| #include <boost/polygon/voronoi_diagram.hpp> | ||
|
|
||
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.
why do you add new include here?
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.
spatial_validation.cpp uses
bg::model::multi_pointon line 436 but was relying on transitive includes from<boost/geometry.hpp>. In Boost 1.90.0, the main header may not transitively include all geometry types, so I added the explicit include to ensure the code compiles with both old and new Boost versions.