|
Boost : |
From: Simon Buchan (simon_at_[hidden])
Date: 2005-10-12 01:36:36
John D Lamb wrote:
> Kevin Wheatley wrote:
>
>>Hi,
>>
>>I was wondering if anybody has thought about adding a #else to the #if
>>!defined(_ITERATOR) to ignore the unused variable warning in
>>AssignableConcept::const_constraints() you get when compiling on VC7.1
>>? (Or am I missing something subtle about the situation)
>
>
> In gcc you can suppress a warning like this by explicitly casting to void:
> static_cast<void>( x );
>
> Maybe the same method works in VC7 and gives cleaner compilation.
>
That works fine everywhere. It's similar to (void)0, which is a popular
way to say "do nothing".
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk