[Boost-bugs] [Boost C++ Libraries] #11616: Spirit unsigned to signed int comparison

Subject: [Boost-bugs] [Boost C++ Libraries] #11616: Spirit unsigned to signed int comparison
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-04 09:51:01


#11616: Spirit unsigned to signed int comparison
-------------------------------------------------+----------------------
 Reporter: Duncan Paterson <duncan.paterson@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.59.0 | Severity: Cosmetic
 Keywords: |
-------------------------------------------------+----------------------
 The following code generates warnings in with gcc (-Wall) and MSVC. The
 warnings reference signed to unsigned int comparison.

 {{{#!c++
 std::vector<float> values;
 std::string line = "111.2, 222.0, 333.3, 444.6, 555.5";
 bool r = phrase_parse(line.begin(), line.end(),
                      (float_ % ",")
                      ,space, values);
 }}}

 The warnings can be silenced by changing the problem variables from size_t
 to int as shown in the attached patch although I'm not sure this is an
 ideal solution.

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