Boost C++ Libraries: Ticket #11015: Bug with boost/graph/detail/edge.hpp https://svn.boost.org/trac10/ticket/11015 <p> Hi, </p> <p> 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: </p> <p> The bug is that the use of the header "boost/graph/detail/edge.hpp" alone in a program cause an error at the compilation: </p> <p> 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. </p> <p> I don't know if this fix could be enough, but it works for my use. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11015 Trac 1.4.3 mzartek@… Wed, 11 Feb 2015 17:19:06 GMT attachment set https://svn.boost.org/trac10/ticket/11015 https://svn.boost.org/trac10/ticket/11015 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">diff.txt</span> </li> </ul> <p> Output of the diff -u between the old and new "boost/graph/detail/edge.hpp" file </p> Ticket viboes Fri, 13 Feb 2015 18:25:29 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11015#comment:1 https://svn.boost.org/trac10/ticket/11015#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket djh Wed, 04 Nov 2015 13:54:11 GMT attachment set https://svn.boost.org/trac10/ticket/11015 https://svn.boost.org/trac10/ticket/11015 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bgl_csr_edge_hash_fix.h</span> </li> </ul> <p> Hashable Edge POC for Compressed Sparse Row Graph </p> Ticket djh Wed, 04 Nov 2015 13:58:02 GMT <link>https://svn.boost.org/trac10/ticket/11015#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11015#comment:2</guid> <description> <p> I had similar issues with missing hash specializations, when storing Compressed Sparse Row (CSR) Graph Edges in unordered sets. </p> <p> I attached a trivial std hash specialization that works for me, but may need to be more generic (e.g. depending in the <code>EdgeIndex</code> and <code>Vertex</code> type). </p> </description> <category>Ticket</category> </item> </channel> </rss>