Boost logo

Boost :

Subject: Re: [boost] phoenix::bind
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-29 21:57:54


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))();


In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at