Boost C++ Libraries: Ticket #2543: path.hpp:947: warning: comparison between signed and unsigned integer expressions https://svn.boost.org/trac10/ticket/2543 <p> Including boost/filesystem.hpp leads to this warning (repeated some more times for other lines of code): </p> <p> path.hpp:947: warning: comparison between signed and unsigned integer expressions </p> <p> The compiler is gcc 4.2.3 build for QNX 6. It is executed under WinXP. </p> <p> 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. </p> <p> The warning is "fixed" through a typecast from the colon&lt;value_type&gt; to (typename string_type::value_type). This applies for slash, too. </p> <p> I'm not sure that the typecast is the right solution. But at least it works for me ... </p> <p> 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. </p> <p> Many many thanks to all the people bringing boost to me! It is a great to be able to use this powerful lib. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2543 Trac 1.4.3 christian.leutloff@… Thu, 27 Nov 2008 15:21:32 GMT attachment set https://svn.boost.org/trac10/ticket/2543 https://svn.boost.org/trac10/ticket/2543 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">path_hpp_boost_135.patch</span> </li> </ul> Ticket Beman Dawes Mon, 12 Jan 2009 17:28:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2543#comment:1 https://svn.boost.org/trac10/ticket/2543#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Hopefully this has now been fixed by revision 50556. </p> <p> Since none of the compilers I use issue the warning, please reopen the issue if your compiler still warns. </p> <p> --Beman </p> Ticket basilevs@… Wed, 04 Feb 2009 03:03:14 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/2543#comment:2 https://svn.boost.org/trac10/ticket/2543#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> I'm using: boost 1.37 mingw with gcc 1.34 stlport 5.2.1 </p> <p> All these errors appear again. </p> Ticket Beman Dawes Thu, 18 Jun 2009 21:42:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2543#comment:3 https://svn.boost.org/trac10/ticket/2543#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The fix wasn't in 1.37. The first release with the fix was 1.38. </p> <p> If there is any further report of signed vs unsigned comparison warning, please include full information on the version of all software involved, and a copy of one of the warnings. </p> <p> Thanks, </p> <p> --Beman </p> Ticket