|
Boost : |
Subject: Re: [boost] [range] iterator_range operators are too greedy
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2012-11-08 17:17:17
Jeffrey Lee Hellrung, Jr. <jeffrey.hellrung <at> gmail.com> writes:
> Is your type a range?
No.
> How does its semantics differ from the operator== above?
I am building an expression template structure to delay operator== evaluation.
> Presumably if you want to specifically address
> boost::iterator_range, then
>
> template< class I >
> inline bool operator==(my_type, iterator_range<I>);
>
> should be a preferable overload.
Unfortunately it is not. I am getting ambiguity errors.
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk