Boost logo

Boost :

Subject: [boost] [boost-mpl] -Wall -Werror issue
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2012-11-26 18:55:32


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?

-- Noel Belcourt

Boost list run by bdawes at, gregod at, cpdaniel at, john at