|
Boost Users : |
Subject: [Boost-users] Scope exit with no capture
From: Bruno Martínez (bruno.uy_at_[hidden])
Date: 2011-11-22 15:12:36
Hi,
How can I call BOOST_SCOPE_EXIT when no variable needs to be captured?
BOOST_SCOPE_EXIT ()
{
CoUninitialize();
} BOOST_SCOPE_EXIT_END;
doesn't work. I tried
BOOST_SCOPE_EXIT (BOOST_PP_NIL)
BOOST_SCOPE_EXIT (BOOST_PP_EMPTY)
BOOST_SCOPE_EXIT (BOOST_PP_SEQ_NIL)
but they don't work either.
Bruno
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net