Boost C++ Libraries: Ticket #9808: bc_clustering: "has no edges" identifier not found https://svn.boost.org/trac10/ticket/9808 <p> Function has_no_edges(g) is behind graph namespace. Need to attach graph:: indicator before calling this function in bc_clustering.hpp. </p> <div class="wikipage" style="font-size: 80%"><p> Original library code: </p> <div class="wiki-code"><div class="code"><pre> <span class="k">if</span> <span class="p">(</span><span class="n">has_no_edges</span><span class="p">(</span><span class="n">g</span><span class="p">))</span> <span class="k">return</span><span class="p">;</span> <span class="p">(</span><span class="o">...</span><span class="p">)</span> <span class="n">do</span> <span class="p">{</span> <span class="p">(</span><span class="o">...</span><span class="p">)</span> <span class="p">}</span> <span class="k">while</span> <span class="p">(</span><span class="err">!</span><span class="n">is_done</span> <span class="o">&amp;&amp;</span> <span class="err">!</span><span class="n">has_no_edges</span><span class="p">(</span><span class="n">g</span><span class="p">));</span> </pre></div></div></div><div class="wikipage" style="font-size: 80%"><p> Modified code: </p> <div class="wiki-code"><div class="code"><pre> <span class="k">if</span> <span class="p">(</span><span class="n">graph</span><span class="p">::</span><span class="n">has_no_edges</span><span class="p">(</span><span class="n">g</span><span class="p">))</span> <span class="k">return</span><span class="p">;</span> <span class="p">(</span><span class="o">...</span><span class="p">)</span> <span class="n">do</span> <span class="p">{</span> <span class="p">(</span><span class="o">...</span><span class="p">)</span> <span class="p">}</span> <span class="k">while</span> <span class="p">(</span><span class="err">!</span><span class="n">is_done</span> <span class="o">&amp;&amp;</span> <span class="err">!</span><span class="n">graph</span><span class="p">::</span><span class="n">has_no_edges</span><span class="p">(</span><span class="n">g</span><span class="p">));</span> </pre></div></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9808 Trac 1.4.3 Murray Cumming <murrayc@…> Tue, 09 Aug 2016 09:14:14 GMT <link>https://svn.boost.org/trac10/ticket/9808#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9808#comment:1</guid> <description> <p> That code is itself in the graph namespace, so that shouldn't be necessary: <a class="ext-link" href="https://github.com/boostorg/graph/blob/develop/include/boost/graph/bc_clustering.hpp#L125"><span class="icon">​</span>https://github.com/boostorg/graph/blob/develop/include/boost/graph/bc_clustering.hpp#L125</a> </p> <p> Maybe you could mention the compiler and platform and show the actual compiler error. </p> </description> <category>Ticket</category> </item> </channel> </rss>