Boost logo

Boost Users :

Subject: [Boost-users] [Lambda] nitty gritty detail...?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-03-31 11:29:06


>From Bjorn Karlsson's book, P297...

int i;
int value = 12;
var(i) = ( if_then_else_return( _1>=10, constant(10),_1) )(value);

Why does the assignment LHS need to be wrapped in var()?

Thanks in advance

- Rob.



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