Boost logo

Boost :

From: J-S Lin (jslin_at_[hidden])
Date: 2003-03-14 08:39:23


Hi, Volodya,

1) It works even though I haven't got to CVS.

#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION

template <>

struct property_traits<default_color_type*> {

typedef default_color_type value_type;

I added it here--> typedef default_color_type& reference;

typedef std::ptrdiff_t key_type;

typedef lvalue_property_map_tag category;

}

2) After it works, I set compile option back to /Gm, and it still works, the
error C1076 does not appear anymore.

Thanks.

J-S

----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Friday, March 07, 2003 2:32 AM
Subject: Re: [boost] [BGL]edge connectivity code won't compile

> Hi J-S,
>
> > Hi, Volodya
> >
> > Following arethe error messages:
> > ------------------------------------------
> > \boost-g\boost_1_29_0\boost\property_map.hpp(151) : error C2039:
> > 'reference'
> >
> > : is not a member of 'boost::property_traits'
> >
> > with
> > [
> > PA=boost::default_color_type *
> > ]
> > g:\boost-g\boost_1_29_0\boost\graph\properties.hpp(52) : see
> > declaration of 'boost::property_traits'
> > with
> > [
> > PA=boost::default_color_type *
> > ]
>
> Could you please try adding
>
> typedef default_color_type& reference;
>
> to the specialization of property_traits for default_color_type, which
> is in file boost/graph/properties.hpp (line 56 in CVS version)
>
> If this fixes the error, I'll make the fix in CVS.
>
> > > > Basically, I got two errors:
> > > > 1)C1076--I have changed from /Gm to /Zm1000, and it went way.
>
> Did you posted compiler output for this error, or I missed it?
>
> Thanks,
> Volodya
>
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk