
12 Oct
2005
12 Oct
'05
6:36 a.m.
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".