[Boost-bugs] [Boost C++ Libraries] #4537: suggestion to remove warning of comparison about singned and unsigned

Subject: [Boost-bugs] [Boost C++ Libraries] #4537: suggestion to remove warning of comparison about singned and unsigned
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-13 05:01:36


#4537: suggestion to remove warning of comparison about singned and unsigned
---------------------------------------------+------------------------------
 Reporter: Philipp Huber <phu@…> | Owner: agurtovoy
     Type: Patches | Status: new
Milestone: Boost 1.44.0 | Component: mpl
  Version: Boost 1.43.0 | Severity: Cosmetic
 Keywords: |
---------------------------------------------+------------------------------
 I haven't got into mpl to actually understand, what the lines are doing I
 suggest to correct, they actually don't make sense to me. However, they
 are causing a long template warning in the context of using
 boost::text_archive about comparing unsigned with signed which causes
 eclipse to interpret it as an error for unknown reasons.

 so I suggest the following patch (the revision numbers are those of my own
 repository):

 Index: boost/mpl/print.hpp
 ===================================================================
 --- print.hpp (revision 1772)
 +++ print.hpp (revision 1773)
 @@ -57,7 +57,7 @@
  # if defined(__EDG_VERSION__)
             aux::dependent_unsigned<T>::value > -1
  # else
 - sizeof(T) > -1
 + sizeof(T) >= 0
  # endif
          };
  #endif

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4537>
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:04 UTC