[Patch] First bits of the algo merge

Howard Hinnant hhinnant@apple.com
Wed Dec 14 17:01:00 GMT 2005


On Dec 14, 2005, at 11:57 AM, Peter Dimov wrote:

> 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&?

I don't get it either.  I just noticed my bug too. Sorry for the  
noise.  Back to work on the test...

-Howard



More information about the Libstdc++ mailing list