Boost logo

Boost Users :

Subject: Re: [Boost-users] Trouble w/ fruchterman-reingold
From: eric (eric.burns_at_[hidden])
Date: 2012-10-04 15:11:26


Wow, okay ... thank you. I have to admit that this is all a little bit of
voodoo for me. There are a lot of things going on behind the scenes that I
don't understand.

I'm trying to get my toy prototype into what I need it to be, but as soon as
I switch from defining my Vertex this way:

typedef property<vertex_index_t, int, property&lt;vertex_position_t, Point>
> Vertex;

to defining it this way:

struct Vertex
{
        int property1;
        int property2;
};

I start getting this compiler error:

1>c:\program files
(x86)\boost\boost_1_51\boost\graph\detail\adjacency_list.hpp(2540) : error
C2039: 'type' : is not a member of 'boost::property_value<PropertyList,Tag>'
1> with
1> [
1> PropertyList=wmain::Vertex,
1> Tag=int
1> ]

That comes from "struct vec_adj_list_any_vertex_pa", which I assume is the
vector adjacency_list vertex property ... accessor? Anyway, I don't know
how to get my property_value to have a "::type" ... or where the
property_value comes from in the first place, for that matter.

Could you help me understand? Or if there is something I could read that
would clear it all up for me, that would be awesome, too. I trolled through
the docs, but haven't hit on something that makes me understand what is
going on.

--
View this message in context: http://boost.2283326.n4.nabble.com/Trouble-w-fruchterman-reingold-tp4636494p4636548.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net