Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-08-22 03:18:57


> > 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

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