|
Boost : |
From: Simon Buchan (simon_at_[hidden])
Date: 2005-10-12 22:27:53
Kevin Wheatley wrote:
> Simon Buchan wrote:
>
>>That works fine everywhere. It's similar to (void)0, which is a popular
>>way to say "do nothing".
>
>
> In that file (and else where) there are specific calls to the
> boost::ignore_unused_variable_warning() mechanism. I wondered if there
> was a good reason it wasn't done in this case, before assuming it will
> just work.
>
> Kevin
ignore_unused_variable_warning is defined in workaround.hpp, so I may be
wrong that void casting stops the warning everywhere. (usage warnings
are pretty fiddly). However, that method works by not giving the
parameter a name, which I seem to remember getting warnings for in some
compilers. (some versions of GCC?)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk