Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] VertexProperties as a Nested Type
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-19 19:06:42


On Wed, 19 May 2010, Hossein Haeri wrote:

> Jeremiah,
>
>> property<graph_type, vertex_bundle_t>::type
>
> property_map<graph_type, vertex_bundle_t>::type temp1;
> string str1(temp1);
>
> give me the following error message:
>
> main.cpp:71: error: 'type' is not a member of
> 'boost::property<boost::adjacency_list<boost::vecS, boost::vecS,
> boost::directedS, std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, boost::no_property, boost::no_property,
> boost::listS>, boost::vertex_bundle_t, boost::no_property>'
>
> And, replacing "property" above with "property_map", I get the following
> error:
>
> main.cpp:72: error: no matching function for call to
> 'std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::basic_string(boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS,
> boost::vecS, boost::directedS, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, boost::no_property,
> boost::no_property, boost::listS>, boost::adjacency_list<boost::vecS,
> boost::vecS, boost::directedS, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, boost::no_property,
> boost::no_property, boost::listS>*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&,
> boost::vertex_bundle_t>&)'
>
> Any ideas?

It looks like property_map is the right name. Could you please post the
entire file so I know which line numbers those errors are referring to?

-- Jeremiah Willcock


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