This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] First bits of the algo merge


Howard Hinnant wrote:
On Dec 14, 2005, at 10:51 AM, Howard Hinnant wrote:

That proxy test is still on the way...

Ok, below is a test. ...

struct equal_to
{
    template <class _Lhs, class _Rhs>
    bool operator()(const _Lhs& __lhs, const _Lhs& __rhs) const

Need _Rhs here.


{return __lhs == __rhs;}
};

    public:
        operator T& () const {return iter_->dirty_deref();}
        operator const T& () {return iter_->deref();}

I don't get it. A non-const proxy is convertible to T const& and a const proxy converts to T&?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]