Boost logo

Boost :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2007-08-21 22:02:29


Andrey Semashev wrote:
>
> - The scope-exit block arguments are taken by reference. I consider
> this as a drawback because it is most often desirable to fix the
> environment state at the point where the guard is created. The most
> frequent and, in majority, the only exception to this is the
> "commit/dispose" flag. Playing otherwise may lead to subtle errors.
>

Could it just take arguments by value and use boost::ref for references
like the other function-like libraries?

Thanks,

Michael Marcin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk