[BGL] A bug in const bundle_property_map or in Readable Property Map Concept ?

Hi there, 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? Thank you, Dmitry

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. Andrew Sutton andrew.n.sutton@gmail.com

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:
"/usr/usuaris/doctorat/dmitry/include/boost_1_39_0/boost/property_map.hpp:161:
error: assignment of read-only data-member
`boost::ReadablePropertyMapConcept

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: "/usr/usuaris/doctorat/dmitry/include/boost_1_39_0/boost/property_map.hpp:161: error: assignment of read-only data-member `boost::ReadablePropertyMapConcept
::val'"
This should fail for any version of Boost < 1.40. The cosnt_type generator causes the property map to be generated with cosnt value_type, which causes the problem. This has been fixed in trunk. Andrew Sutton andrew.n.sutton@gmail.com

Andrew Sutton wrote:
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: "/usr/usuaris/doctorat/dmitry/include/boost_1_39_0/boost/property_map.hpp:161: error: assignment of read-only data-member `boost::ReadablePropertyMapConcept
::val'" This should fail for any version of Boost < 1.40. The cosnt_type generator causes the property map to be generated with cosnt value_type, which causes the problem. This has been fixed in trunk.
Ok. Thanks! Dmitry

Andrew Sutton wrote:
This should fail for any version of Boost < 1.40. The cosnt_type generator causes the property map to be generated with cosnt value_type, which causes the problem. This has been fixed in trunk.
Andrew Sutton andrew.n.sutton@gmail.com mailto:andrew.n.sutton@gmail.com
From the "[BGL] Bundled properties and property maps" thread; thank you! Geoff
participants (3)
-
Andrew Sutton
-
Dmitry Bufistov
-
Geoff Hilton