Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] A bug in const bundle_property_map or in Readable Property Map Concept ?
From: Dmitry Bufistov (dmitry_at_[hidden])
Date: 2009-05-18 11:11:22

Andrew Sutton escribió:
> The attached test case fails to compile. If it is a bug I would be
> happy to open a ticket for it!
> Could somebody please confirm?
> What about it fails? I compiled it with both function_requires
> uncommented and it worked just fine. What [compiler|os|boost] is this
> failing under.

Hi Andrew,

The problem is reproducible with all compilers that I have access to:
gcc-4.1.2 and gcc-3.4.6-5 (Debian, boost 1.39.0)
The error message:
error: assignment of read-only data-member
`boost::ReadablePropertyMapConcept<main()::cWeightMap, main()::Edge>::val'"

MSVS 2005, Windows XP, boost 1.37.0:
d:\boost\boost_1_37_0\boost\property_map.hpp(162) : error C2166: l-value
specifies const object
         d:\boost\boost_1_37_0\boost\property_map.hpp(159) : while
compiling class template member function 'void


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