22 Aug
2007
22 Aug
'07
10:36 p.m.
"Pavel Vozenilek" wrote:
It should be said that the values are passed by value (and when) and mentioned how to pass them by reference.
Eh, vice versa. Typed too fast. ----------------------- I'll add my own experience to the discussion of macro heresy: I prefere BOOST_FOREACH instead of std algos + bind + lambda because: * I know what I wrote. With algos/bind/lambda it is always great thrill and one feels like a discoverer of a new continent when it gets finally right but at the end it is net waste of my time. * I can debug it, easily. I'd say both will apply on ScopeExit versus a complex ScopeGuard. Macros can be more practical than other constructs, sometimes. /Pavel