
23 Aug
2007
23 Aug
'07
4:03 p.m.
AMDG Alexander Nasonov <alnsn <at> yandex.ru> writes:
So, my current favorite is BOOST_SCOPE_EXIT( cref(c) ref(r) val(v) ). IMO, it looks more natural than (a)(b)(c). More verbose but this verbosity has a purpose.
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. In Christ, Steven Watanabe