
13 Aug
2007
13 Aug
'07
4:08 p.m.
On 8/13/07, David Abrahams <dave@boost-consulting.com> 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