$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] PropertyGraphConcept concept checking errors for an example implicit graph
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-06-25 09:55:49
On Thu, 24 Jun 2010, W.P. McNeill wrote:
> How do I "specialize boost::property_map directly"? Â This might be the key to the problem. Â
>
> My current shot in the dark is to try:
> template<>
> struct boost::property_map<ImplicitRingGraph, boost::edge_weight_t> {
> typedef EdgeWeightMap type;
> typedef EdgeWeightMap const_type;
> };
>
> which gives me the error
>
> implicit.hpp:116: error: specialization of âtemplate<class Graph, class Property> struct boost::property_mapâ in different namespace
> /opt/local/include/boost/graph/properties.hpp:244: error: Â from definition of âtemplate<class Graph, class Property> struct boost::property_mapâ
You need to do:
namespace boost {
template <>
struct property_map<ImplicitRingGraph, boost::edge_weight_t> {
...
};
}
-- Jeremiah Willcock