
23 Jul
2004
23 Jul
'04
12:15 a.m.
"Christopher Baus"
Then, in his version of ON_BLOCK_EXIT (which is customized for his library, and so not generally useful) expands to something like this:
const scope_guard_impl_base& guard = make_guard( ... ); guard.touch();
That's probably a better solution than using compiler dependant switches.
Yep. It should suppress warnings on other compilers too, and makes the code easier to understand. Jonathan