On Aug 28, 2007, at 4:04 AM, Sam Peterson wrote:
On 8/27/07, Ronald Garcia
wrote: I'm not absolutely sure, but you might be able to pass along a boost::dummy_property_map (defined in boost/property_map.hpp) as the property map for node_id. That map will not store any information.
No dice: error: invalid use of void expression
If you don't care about any properties, and you are using Boost from the svn repository, then you can construct your dynamic_properties object with the argument '&boost::ignore_other_properties' and it will not complain about any properties.
I'm a little leary of trying the svn version, especially if there's undocumented changes to the library.
You could copy the definition of ignore_other_properties into your code (perhaps under a different name): std::auto_ptrboost::dynamic_property_map ignore_other_properties(const std::string&, const boost::any&, const boost::any&) { return std::auto_ptrboost::dynamic_property_map(0); } then pass this function to the dynamic_properties constructor: dynamic_properties dp(&ignore_other_properties); HTH, ron