|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-05-30 09:37:19
From: "Johan Nilsson" <r.johan.nilsson_at_[hidden]>
> 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
)();
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net