
30 Sep
2008
30 Sep
'08
1:57 a.m.
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))(); ? In Christ, Steven Watanabe