Boost C++ Libraries: Ticket #6371: [graph] compile error directed_graph/undirected_graph https://svn.boost.org/trac10/ticket/6371 <p> follow code is compile error: </p> <pre class="wiki">#include &lt;boost/graph/directed_graph.hpp&gt; #include &lt;boost/graph/undirected_graph.hpp&gt; using namespace boost; int main() { directed_graph&lt;&gt; dg(5); graph_traits&lt;directed_graph&lt;&gt; &gt;::vertex_descriptor dv = vertex(3, dg); // error! undirected_graph&lt;&gt; ug(5); graph_traits&lt;undirected_graph&lt;&gt; &gt;::vertex_descriptor uv = vertex(3, ug); // error! return 0; } </pre><p> patch is here: </p> <pre class="wiki">--- directed_graph.hpp +++ directed_graph.hpp (bug fixed) @@ -410,7 +410,7 @@ typename DIRECTED_GRAPH::vertex_descriptor vertex(typename DIRECTED_GRAPH::vertices_size_type n, DIRECTED_GRAPH const&amp; g) -{ return vertex(g.impl()); } +{ return vertex(n, g.impl()); } </pre><pre class="wiki">--- undirected_graph.hpp +++ undirected_graph.hpp (bug fixed) @@ -413,7 +413,7 @@ typename UNDIRECTED_GRAPH::vertex_descriptor vertex(typename UNDIRECTED_GRAPH::vertices_size_type n, UNDIRECTED_GRAPH const&amp; g) -{ return vertex(g.impl()); } +{ return vertex(n, g.impl()); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6371 Trac 1.4.3 Jeremiah Willcock Tue, 10 Jan 2012 01:29:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6371#comment:1 https://svn.boost.org/trac10/ticket/6371#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76394" title="Applied patch from #6371; fixes #6371">[76394]</a>) Applied patch from <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6371" title="#6371: Bugs: [graph] compile error directed_graph/undirected_graph (closed: fixed)">#6371</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6371" title="#6371: Bugs: [graph] compile error directed_graph/undirected_graph (closed: fixed)">#6371</a> </p> Ticket