Boost logo

Boost Users :

From: Val Samko (boost_at_[hidden])
Date: 2004-04-04 09:42:59


Hi,

Is it required for a readable property map to have operator[]?
At least, that is not mentioned at
http://www.boost.org/libs/property_map/ReadablePropertyMap.html ,
so I assume, operator[] is not required.

At http://www.boost.org/libs/graph/doc/johnson_all_pairs_shortest.html
it is documented that weight_map named parameter must be a model
of a readable property map.

At johnson_all_pairs_shortest.hpp, line 101 we have
w[e2] = w1[*e];
which assumes that weight_map has operator [].

Is the problem in the readable property map documentation,
or in the johnson_all_pairs_shortest, or I am doing something
wrong?

--
Val Samko                    http://val.digiways.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net