Boost logo

Boost Users :

From: Dmitry (dmitry_at_[hidden])
Date: 2007-02-04 12:42:02


"Jens Muller" <jens.mueller_at_[hidden]> wrote in message
news:<eq4poi$go9$1_at_[hidden]>...
> Dmitry schrieb:
> > Jens, the ReadablePropertyMap parameter has to be a class with the
following
> > typedef at least:
> >
> > typedef value_type some_type;
> >
>
>
> Why?
>
> http://www.boost.org/libs/property_map/ReadablePropertyMap.html says:
>
> Associated Types
> Value Type boost::property_traits<PMap>::value_type The type of
the
> property.
>
> That's what these traits classes are for: external adaption.
>
> You replied to the fixed version where I use property_traits.

Jens,
I think that you are missing something. As for me, the property_traits class
is just a way of uniform data manipulation. Your class has to be a model of
this abstract concept. (To be a Read Property Map it is enough to have 3
typedefs and get() function, see Concept Checking Class in the documentation
that you referred).
--Dmitry


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