Boost C++ Libraries: Ticket #8962: adjacency_list doesn't work with hash_setS https://svn.boost.org/trac10/ticket/8962 <p> When compiling under Clang (3.3 final), the following code results in a compile error due to template lookup failure. It compiles cleanly under G++ 4.8. Replacing hash_setS with setS allows the code to compile. </p> <pre class="wiki">#include &lt;boost/graph/adjacency_list.hpp&gt; #include &lt;iostream&gt; int main(int argc, char* argv[]) { typedef boost::adjacency_list&lt;boost::hash_setS, boost::vecS, boost::undirectedS &gt; undirectedGraphT; undirectedGraphT G; boost::add_edge(1, 2, G); typedef boost::graph_traits &lt;undirectedGraphT&gt;::edge_descriptor Edge; Edge e; bool hasEdge{false}; std::tie(e, hasEdge) = boost::edge(1, 2, G); std::cout &lt;&lt; (hasEdge ? "did " : "did not ") &lt;&lt; "find edge\n"; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8962 Trac 1.4.3 Rob Patro <rob.patro@…> Sun, 04 Aug 2013 00:46:14 GMT attachment set https://svn.boost.org/trac10/ticket/8962 https://svn.boost.org/trac10/ticket/8962 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">cout.txt</span> </li> </ul> <p> compiler output </p> Ticket Jeremiah Willcock Wed, 02 Oct 2013 19:15:22 GMT <link>https://svn.boost.org/trac10/ticket/8962#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8962#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86137" title="Made boost::unordered inclusion unconditional; removed support for ...">[86137]</a>) Made boost::unordered inclusion unconditional; removed support for non-partial-specialization compilers; enabled C++11 unordered containers when they are present; refs <a class="new ticket" href="https://svn.boost.org/trac10/ticket/8962" title="#8962: Bugs: adjacency_list doesn't work with hash_setS (new)">#8962</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>