Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55957 - trunk/boost/type_traits
From: john_at_[hidden]
Date: 2009-09-01 08:24:08


Author: johnmaddock
Date: 2009-09-01 08:24:08 EDT (Tue, 01 Sep 2009)
New Revision: 55957
URL: http://svn.boost.org/trac/boost/changeset/55957

Log:
Fix warnings emitted by gcc when building with -Wall -Wextra.
Fixes #3381.
Text files modified:
   trunk/boost/type_traits/is_signed.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/type_traits/is_signed.hpp
==============================================================================
--- trunk/boost/type_traits/is_signed.hpp (original)
+++ trunk/boost/type_traits/is_signed.hpp 2009-09-01 08:24:08 EDT (Tue, 01 Sep 2009)
@@ -30,7 +30,7 @@
 struct is_signed_helper
 {
    typedef typename remove_cv<T>::type no_cv_t;
- BOOST_STATIC_CONSTANT(bool, value = (static_cast<no_cv_t>(-1) < 0));
+ BOOST_STATIC_CONSTANT(bool, value = (!(static_cast<no_cv_t>(-1) > 0)));
 };
 
 template <bool integral_type>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk