[Boost-bugs] [Boost C++ Libraries] #5761: warning im MPL source

Subject: [Boost-bugs] [Boost C++ Libraries] #5761: warning im MPL source
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-07 17:39:15


#5761: warning im MPL source
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: agurtovoy
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpl
  Version: Boost 1.47.0 | Severity: Cosmetic
 Keywords: |
------------------------------+---------------------------------------------
 I get warning in Visual C++ 10, 32 bit mode (strangely, 64 bit mode is
 warning free):


 p:\app\3pp\boost\mpl\print.hpp(51): warning C4308: negative integral
 constant converted to unsigned type


 It is line:
    enum { n = sizeof(T) + -1 };

 Changing it into:
    enum { n = sizeof(T) - 1 };

 got rid the warning.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5761>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC