Boost logo

Boost :

Subject: Re: [boost] [boost-mpl] -Wall -Werror issue
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-11-26 19:22:50


On 27/11/12 00:55, Belcourt, Kenneth wrote:
> Hi,
>
> This code generates sign / unsigned compare warning with -Wall, could this please be cleaned up?
>
> enum {
> n =
> # if defined(__EDG_VERSION__)
> aux::dependent_unsigned<T>::value > -1
> # else
> sizeof(T) > -1
> # endif
> };
>
> It appears that sizeof(T) > -1 yields zero for EDG, Gcc and Clang so perhaps this is just older (unused) code?

The code in question is in print.hpp
Its purpose is to emit warnings.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk