|
Boost Users : |
Subject: Re: [Boost-users] identity_property_map
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-22 22:47:49
AMDG
Andreas Fabri wrote:
> Are the code and the documentation of the identity_property_map in sync.
>
> The documentation says that the class identity_property_map
> has a template member function operator[](T t) that for any type T,
> just returns t.
>
> In the .hpp file though I find
>
> //=========================================================================
>
> // A property map that applies the identity function to integers
> struct identity_property_map
> : public boost::put_get_helper<std::size_t,
> identity_property_map>
> {
> typedef std::size_t key_type;
> typedef std::size_t value_type;
> typedef std::size_t reference;
> typedef boost::readable_property_map_tag category;
>
> inline value_type operator[](const key_type& v) const { return v; }
> };
>
Please create a ticket at svn.boost.org so this doesn't get lost.
In Christ,
Steven Watanabe
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