[C++-sig] Re: MSVC7.1 warnings with indexing_suite

David Abrahams dave at boost-consulting.com
Sat Oct 11 14:22:00 CEST 2003


Raoul Gough <RaoulGough at yahoo.co.uk> writes:

> "Niall Douglas" <s_sourceforge at nedprod.com> writes:
>
>> Easy to fix these:
>>
>> d:\Tornado\TClient\boost\boost\python\suite\indexing\container_proxy.h
>> pp(68) : warning C4099: 'boost::python::indexing::proxy_iterator' : 
>> type name first seen using 'struct' now seen using 'class'
> [snip]
>
> Thanks for pointing this out. I must admit, I don't see what the point
> of this warning is, but I've fixed it in the CVS anyway. MSVC now
> compiles testlinear.cpp (almost) silently at /W3. Only warning is
> this:

The warning is important because vc6 has a bug which actually causes
struct and class to be treated differently in the linker :(

> d:\CVS\boost\boost\libs\python\test\IntWrapper.hpp(139) : warning
>  C4800: 'int' : forcing value to bool 'true' or 'false' (performance
>  warning)

Yeah, that's ridiculous.  I think an explicit cast fixes it.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list