|
Boost Users : |
From: Alisdair Meredith (yg-boost-users_at_[hidden])
Date: 2002-10-04 12:19:33
scleary_at_[hidden] wrote:
>
> I think the problem is in the definition of Select2ndRef; if you use:
> template<class pair_type>
> struct Select2ndRef
> {
> typedef pair_type argument_type;
> typedef typename pair_type::second_type result_type;
>
> result_type & operator()(pair_type & source) const
> {
> return source.second;
> }
> };
> then your code will compile.
>
> This has to do with an unusual meaning of "result_type" for projection
> iterator adaptors.
Excellent, that seems to work fine.
I've renamed Select2ndRef as Project2nd for use in such cases in the
future <g>
-- AlisdairM
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