|
Boost : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-02-02 15:11:35
Steven Watanabe wrote:
> Ok. Can you provide an example of using your wrapper.
> I'm afraid that I don't understand it's purpose.
I use it in scope_exit. For example,
BOOST_SCOPE_EXIT(_, (rollback)(vec) )
{
if(rollback)
vec.pop_back();
}
BOOST_SCOPE_EXIT_END(_)
Here, typeof is applied to rollback and vec. Now imaging supporting
all combinations (_TPL suffix and no suffix) for each argument.
-- Alexander Nasonov http://nasonov.blogspot.com Driven from every other corner of the earth, freedom of thought and the right of private judgment in matters of conscience direct their course to this happy country as their last resort. -- Samuel Adams -- This quote is generated by: /usr/pkg/bin/curl -L http://tinyurl.com/veusy \ | sed -e 's/^document\.write(.//' -e 's/.);$/ --/' \ -e 's/<[^>]*>//g' -e 's/^More quotes from //' \ | fmt | tee ~/.signature-quote
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk