Boost C++ Libraries: Ticket #7455: vertex_property should inherit publicly from vertex_property_type https://svn.boost.org/trac10/ticket/7455 <p> Hi, </p> <p> vertex_property and edge_property should inherit publicly from vertex_property_type and edge_property_type. A patch follows. </p> <pre class="wiki">./ContigGraph.h:55:39: error: 'type' is a private member of 'boost::mpl::eval_if&lt;boost::detail::has_vertex_property_type&lt;DirectedGraph&lt;ContigProperties, Distance&gt;, mpl_::bool_&lt;false&gt;&gt;, boost::detail::get_vertex_property_type&lt;DirectedGraph&lt;ContigProperties, Distance&gt;&gt;, boost::no_property&gt;' typedef typename vertex_property&lt;G&gt;::type vertex_property_type; ^ /usr/local/include/boost/graph/properties.hpp:251:49: note: constrained by implicitly private inheritance here template &lt;class Graph&gt; class vertex_property: vertex_property_type&lt;Graph&gt; {}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ </pre><p> Cheers, Shaun </p> <pre class="wiki">--- graph/properties.hpp.orig 2012-09-27 11:37:48.000000000 -0700 +++ graph/properties.hpp 2012-10-01 10:43:34.000000000 -0700 @@ -248,8 +248,8 @@ &gt;::type type; }; - template &lt;class Graph&gt; class vertex_property: vertex_property_type&lt;Graph&gt; {}; - template &lt;class Graph&gt; class edge_property: edge_property_type&lt;Graph&gt; {}; + template &lt;class Graph&gt; class vertex_property: public vertex_property_type&lt;Graph&gt; {}; + template &lt;class Graph&gt; class edge_property: public edge_property_type&lt;Graph&gt; {}; template &lt;typename Graph&gt; class degree_property_map </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7455 Trac 1.4.3 sjackman@… Mon, 01 Oct 2012 20:24:04 GMT <link>https://svn.boost.org/trac10/ticket/7455#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7455#comment:1</guid> <description> <p> I agree; that is fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/80811" title="Changed classes to structs to get public inheritance; thanks to Shaun ...">r80811</a>. Could you please file these kinds of things as bug reports so that they can be listed in the release notes, though? Thank you. </p> <p> -- Jeremiah Willcock </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Mon, 01 Oct 2012 20:26:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7455#comment:2 https://svn.boost.org/trac10/ticket/7455#comment:2 <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> Ticket Shaun Jackman <sjackman@…> Wed, 21 Nov 2012 18:06:40 GMT <link>https://svn.boost.org/trac10/ticket/7455#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7455#comment:3</guid> <description> <p> This is not fixed in Boost 1.52.0 as the milestone tag indicates. Should the milestone be changed to 1.53.0? </p> <p> Cheers, Shaun </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 21 Nov 2012 19:48:31 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/7455#comment:4 https://svn.boost.org/trac10/ticket/7455#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> </ul> Ticket