
22 Aug
2007
22 Aug
'07
7:18 a.m.
Could it just take arguments by value and use boost::ref for references like the other function-like libraries?
Andrey Semashev <andysem <at> mail.ru> writes:
I thought of it too, but I couldn't imagine the way to implement it. One would like to put "ref(arg)" into scope-exit arguments list, and I don't see the way to extract "arg" portion from this string to name the argument.
If you're referring to this syntax BOOST_SCOPE_EXIT( byref(r) byval(v) ) than it's probably possible but I'm not an exprert in PP. -- Alexander