-
-
Notifications
You must be signed in to change notification settings - Fork 846
Fix compile error when compiling boost graphs with recent clang #39526
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 |
|---|---|---|
|
|
@@ -22,8 +22,8 @@ | |
| #include <iostream> | ||
| #include <utility> | ||
|
|
||
| typedef int v_index; | ||
| typedef long e_index; | ||
| typedef unsigned long v_index; | ||
| typedef unsigned long e_index; | ||
|
Contributor
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. I don't think this change is necessary. I think you got confused when the programmer lies to cython or something https://cython-guidelines.readthedocs.io/en/latest/articles/lie.html similar to #39098 (comment) In other words: even though in the pxd the declaration is in compiled code it should still use Or so I think.
Member
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. I don't understand why the programmer would want to lie to Cython here? So, Maybe I'll put in the extra work and actually separate these types but I think in Cython I'll just set them all to I am not sure I really understood your objection here though. Maybe you can rephrase what you had in mind?
Member
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. I see now what you meant with the |
||
|
|
||
| // This struct is the output of the edge connectivity Boost algorithm. | ||
| typedef struct { | ||
|
|
@@ -84,11 +84,11 @@ class BoostGraph | |
| // This map is a parameter/output for biconnected_components function | ||
| typedef typename std::map<edge_descriptor, int, order_edges> edge_map; | ||
|
|
||
| public: | ||
| adjacency_list graph; | ||
| std::vector<vertex_descriptor> vertices; | ||
| vertex_to_int_map index; | ||
|
|
||
| public: | ||
|
Comment on lines
-87
to
+91
Member
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. This is not necessary to fix the warning. But since these fields are not part of the Cython interface, they can as well be private (would have helped me to understand things more quickly. |
||
| BoostGraph() { | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.