Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-08-22 12:31:23


Hi,

trying to compile property_map_cc test on Sun using workshop 6 u.1

I've got following error:

"/boost/boost/concept_check.hpp", line 229: Error: Cannot use
boost::read_write_property_map_tag to initialize
boost::lvalue_property_map_tag.

"/boost/boost/property_map.hpp", line 234: Where: While
instantiating "boost::function_requires<boost::ConvertibleConcept<boos
t::read_write_property_map_tag, boost::lvalue_property_map_tag>>()".

"/boost/boost/property_map.hpp", line 234: Where: Instantiated
from
boost::function_requires<boost::LvaluePropertyMapConcept<boost::dummy_
property_map, int>>().
"property_map_cc.cpp", line 105: Where: Instantiated from non-
template code.

Seems reasonable complain.

Gennadiy.

P.S. To make it compile I made following change which is also look
reasonable

RCS file: /cvsroot/boost/boost/libs/property_map/property_map_cc.cpp,v
retrieving revision 1.2
diff -r1.2 property_map_cc.cpp
64c64,68
< typedef iterator_property_map<Iterator, IndexMap> PMap;

---
>     typedef iterator_property_map<Iterator, IndexMap
> #ifdef BOOST_NO_STD_ITERATOR_TRAITS
> 	, Value, Value const&
> #endif
> 	> PMap;
72c76,80
<     typedef iterator_property_map<Iterator, IndexMap> PMap;
---
>     typedef iterator_property_map<Iterator, IndexMap
> #ifdef BOOST_NO_STD_ITERATOR_TRAITS
> 	, Value, Value&
> #endif
> 	> PMap;

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