Boost logo

Boost Users :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2007-08-22 18:36:23


"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


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