Boost logo

Boost Users :

From: scleary_at_[hidden]
Date: 2002-10-04 10:57:50


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.

        -Steve


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