Opened 8 years ago
Last modified 7 years ago
#11015 new Bugs
Bug with boost/graph/detail/edge.hpp
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi,
I found a bug and it has not been solved yet (i searched on the latest source on the git repo), ok here it is:
The bug is that the use of the header "boost/graph/detail/edge.hpp" alone in a program cause an error at the compilation:
This error say that the "hash struct" is not a template class. After some searching i noticed that this "hash struct" is a template specialization, and the problem is that the "hash struct" generic template is not included in this file, i fixed it by adding the "boost/functional/hash/hash.hpp" header.
I don't know if this fix could be enough, but it works for my use.
Attachments (2)
Change History (4)
by , 8 years ago
comment:1 by , 8 years ago
Component: | None → graph |
---|---|
Owner: | set to |
by , 7 years ago
Attachment: | bgl_csr_edge_hash_fix.h added |
---|
Hashable Edge POC for Compressed Sparse Row Graph
comment:2 by , 7 years ago
I had similar issues with missing hash specializations, when storing Compressed Sparse Row (CSR) Graph Edges in unordered sets.
I attached a trivial std hash specialization that works for me, but may need to be more generic (e.g. depending in the EdgeIndex
and Vertex
type).
Output of the diff -u between the old and new "boost/graph/detail/edge.hpp" file