Boost logo

Boost Users :

Subject: Re: [Boost-users] read_graphviz with a simple graph
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-06-23 17:27:51

On Thu, 23 Jun 2011, David Doria wrote:

>> Apparently null_property_map is write-only, so it doesn't have a get()
>> function; I hadn't realized that.  Please try dummy_property_map (from
>> boost/property_map/property_map.hpp) instead, or if that doesn't work,
>> static_property_map or ref_property_map from the same file.
>> -- Jeremiah Willcock
> With
>"node_id", boost::dummy_property_map());
> I get: "error: invalid use of void expression".
> with
>"node_id", boost::static_property_map<Graph::vertex_descriptor>());


std::string s;
... boost::static_property_map<std::string>(s) ...

-- Jeremiah Willcock

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at