[Boost-bugs] [Boost C++ Libraries] #10098: Ugly warning about sign/unsigned mismatch in comparison

Subject: [Boost-bugs] [Boost C++ Libraries] #10098: Ugly warning about sign/unsigned mismatch in comparison
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-06 13:06:19


#10098: Ugly warning about sign/unsigned mismatch in comparison
-----------------------------------------+------------------------
 Reporter: Joseph Southwell <joseph@…> | Owner: neilgroves
     Type: Patches | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost Release Branch | Severity: Cosmetic
 Keywords: |
-----------------------------------------+------------------------
 operator[] and operator() in iterator_range_core take difference_type and
 then compare it to size type. To fix the warning either those operators
 should take size_type or you should cast at like ((size_type)at) in the
 comparison.

 I am attaching a patch with cast option in it since that is less likely to
 impact things calling these operators.

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