|
Boost : |
Subject: Re: [boost] phoenix::bind
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-09-30 00:59:45
Steven Watanabe wrote:
> AMDG
>
> Eric Niebler wrote:
>>> The other thorny issue is that lambda expressions aren't Assignable,
>>> because their operator= creates a new lambda exression instead. This
>>> might well be unfixable.
>>
>> We could make lambdas Assignable by defining the ordinary assignment
>> operator when the rhs has the same type as the lhs. That would rule
>> out strange lambdas like "_1 = _1" , but I don't see that as a huge loss.
>
> what about a nullary lambda:
>
> vector<int> v1, v2;
>
> (ref(v1) = ref(v2))();
Yikes! Yeah :(
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk