Can you explain what problems you are seeing? Using VA 1822 I have added the following code to a C++ header file:
class testBoostScopeExit
{
QDataStream* ds = NULL;
QDataStream* dsNew = NULL;
BOOST_SCOPE_EXIT((ds)(dsNew))
{
delete ds;
delete dsNew;
}BOOST_SCOPE_EXIT_END ;
QDataStream* dsAfter = NULL;
};
static void testUsingBoostScopeClass()
{
testBoostScopeExit fooBoost;
fooBoost.|
}
When I type the dot, I get a listbox showing me 4 members of this class. "BOOST_SCOPE_EXIT" is also listed, along with the three member variables, which is not ideal, but so far I am not seeing any significant problems.