|
Boost : |
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2007-08-13 12:08:42
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.
gpd
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk