Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-08-23 13:31:42

Yanchenko Maxim <maximyanchenko <at>> writes:
> I agree with Steven,
> This syntax looks same as the new Boost.Parameter syntax, and this is good
for the Boost as a whole.

> 23.08.07, 20:03, Steven Watanabe:
> > I prefer BOOST_SCOPE_EXIT((cref c)(ref r)(val v))
> > for two reasons.
> > 1) It makes it clear that they are /not/ function
> > calls
> > 2) It's slightly easier to implement because you
> > can use BOOST_PP_SEQ_FOR_EACH.


BTW, we could omit val in (cref c)(ref r)(val v) without
any bad consequences for ScopeExit but doing this could
make this syntax inconsistent with LocalFunction where
passing by reference may lead to dangling references.


Boost list run by bdawes at, gregod at, cpdaniel at, john at