Boost C++ Libraries: Ticket #2072: Default named parameters in the graph library can not be used with external adaptet graph libraries https://svn.boost.org/trac10/ticket/2072 <p> Due to the following code in boost/graph/properties.hpp:154,155 typedef typename Graph::graph_tag graph_tag; default named paramters can not be used in external libraries, where 'Graph' does not have a graph_tag type. I tested with depth_first_search(). If the code would change to typedef typename graph_traits&lt;Graph&gt;::graph_tag graph_tag; then would be OK. But if I change the line above I get other error messages. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2072 Trac 1.4.3 Douglas Gregor Sun, 06 Jul 2008 18:33:36 GMT status, milestone changed https://svn.boost.org/trac10/ticket/2072#comment:1 https://svn.boost.org/trac10/ticket/2072#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> <p> This is definitely a bug, but the fix isn't to use graph_traits. Rather, we need to avoid getting into this part of the code that attempts to look at graph_tag. The general fix is to not define a primary property_map template that looks into the graph type itself unless we know that graph_tag will be there. </p> <p> The workaround is to define a partial specialization of boost::property_map for your graph type, so that the primary property_map template is never used (and, therefore, we don't end up looking for graph_tag). </p> Ticket Jeremiah Willcock Wed, 13 May 2009 22:40:44 GMT owner, status changed https://svn.boost.org/trac10/ticket/2072#comment:2 https://svn.boost.org/trac10/ticket/2072#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> <p> Have you tried the property_map specialization workaround suggested by Doug? If so, does it work? </p> Ticket Jeremiah Willcock Wed, 13 May 2009 22:41:48 GMT status changed https://svn.boost.org/trac10/ticket/2072#comment:3 https://svn.boost.org/trac10/ticket/2072#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jeremiah Willcock Tue, 09 Jun 2009 19:47:14 GMT <link>https://svn.boost.org/trac10/ticket/2072#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2072#comment:4</guid> <description> <p> Wouldn't the first two tests in libs/graph/test/dfs_cc.cpp catch this kind of problem? Could you please post an example program that demonstrates the bug? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Tue, 24 Nov 2009 20:17:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2072#comment:5 https://svn.boost.org/trac10/ticket/2072#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/57902" title="Fixed uses of undocumented members of graph types; fixes #1021; fixes #2072">[57902]</a>) Fixed uses of undocumented members of graph types; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1021" title="#1021: Bugs: [Graph][reverse_graph] Problem using reverse_graph adapter with an ... (closed: fixed)">#1021</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2072" title="#2072: Bugs: Default named parameters in the graph library can not be used with ... (closed: fixed)">#2072</a> </p> Ticket