Subject: [Boost-bugs] [Boost C++ Libraries] #2543: path.hpp:947: warning: comparison between signed and unsigned integer expressions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-27 15:20:46
#2543: path.hpp:947: warning: comparison between signed and unsigned integer
expressions
------------------------------------------+---------------------------------
Reporter: christian.leutloff_at_[hidden] | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.37.0 | Severity: Problem
Keywords: path, compiler, warning |
------------------------------------------+---------------------------------
Including boost/filesystem.hpp leads to this warning (repeated some more
times for other lines of code):
path.hpp:947: warning: comparison between signed and unsigned integer
expressions
The compiler is gcc 4.2.3 build for QNX 6. It is executed under WinXP.
I'm using boost 1.35. But I have verified that the relevant code sections
in path.hpp are unchanged in svn boost/trunk as of Nov. 25. Therefore I
would assume that this problem is present in newer versions of boost, too.
In version 1.33.1 this problem was not present.
The warning is "fixed" through a typecast from the colon<value_type> to
(typename string_type::value_type). This applies for slash, too.
I'm not sure that the typecast is the right solution. But at least it
works for me ...
I'll attach the diff against boost version 1.35 to show the affected lines
of code. If useful I am willing to move the changes or modified changes to
trunk, too. Please drop me a note if it would be helpful.
Many many thanks to all the people bringing boost to me! It is a great to
be able to use this powerful lib.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2543> 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:49:59 UTC