Subject: [Boost-bugs] [Boost C++ Libraries] #7308: Property maps from bundled properties (with base member)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-31 10:23:36
#7308: Property maps from bundled properties (with base member)
-----------------------------------------------------------+----------------
Reporter: andreas.zilian@⦠| Owner: jewillco
Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
Version: Boost 1.51.0 | Severity: Problem
Keywords: property map, bundled properties, base member |
-----------------------------------------------------------+----------------
In boost 1.50.0 the creation of property maps from a base member in
bundled properties worked. After the modifications on bundled properties
in boost 1.51.0 the code below fails compilation (gcc 4.7.1).
{{{#!c++
#include "boost/graph/adjacency_list.hpp"
struct Base { int base_value; };
struct Vertex : Base { double some_value; };
int main()
{
using namespace boost;
// graph with bundled vertex property
adjacency_list< vecS, vecS, directedS, Vertex > graph(1);
// accessing members, works as expected
graph[ *vertices(graph).first ].some_value = 3.14;
graph[ *vertices(graph).first ].base_value = 42;
// property maps from bundled properties
get( &Vertex::some_value, graph ); // works as expected
get( &Vertex::base_value, graph ); // works with 1.50.0, fails
with 1.51.0
}
}}}
The issue is also present for the PBGL.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7308> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC