From: David Abrahams (dave_at_[hidden])
Date: 2007-08-13 14:48:11
on Mon Aug 13 2007, "Giovanni Piero Deretta" <gpderetta-AT-gmail.com> wrote:
> On 8/13/07, David Abrahams <dave_at_[hidden]> wrote:
>> on Mon Aug 13 2007, "Giovanni Piero Deretta" <gpderetta-AT-gmail.com> wrote:
>> >> One good way to deal with this is to make the proxy object return a
>> >> constant object. Then it will bind to a T& parameter.
>> > That was what I did at the beginning, but I had to deal with lots of third party
>> > functions that didn't constify their arguments
>> Example? I don't see why that should make a difference.
> Sorry, I meant result type, not argument: If a third party function
> (wich prototype I can't modify)
> returns a non const temporary vector, I have to design my range
> algorithms to work
> with non const temporaries anyway if I want to interoperate with it.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk