Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-07-22 19:15:07


"Christopher Baus" <christopher_at_[hidden]> wrote in message
news:46995.12.146.21.162.1090521899.squirrel_at_mail.baus.net...
> > 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


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