
30 May
2007
30 May
'07
1:37 p.m.
From: "Johan Nilsson"
void foo() { int const shouldBe3 = ( lambda::bind(&bar, 1), lambda::bind(&bar, 2), lambda::return(3) // Yes, this conflicts with the regular "return" statement, but you get the idea )();
assert(3 == shouldBe3); }
int const shouldBe3 = ( lambda::bind(&bar, 1), lambda::bind(&bar, 2), 3 )();