[Boost-bugs] [Boost C++ Libraries] #5505: Format : int conversion to bool warning

Subject: [Boost-bugs] [Boost C++ Libraries] #5505: Format : int conversion to bool warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-26 05:02:41


#5505: Format : int conversion to bool warning
-------------------------------------------------------+--------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: samuel_krempp
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: format
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------
 VC++2008, warning level 4

 {{{
 template<class Ch, class Facet> inline
 bool wrap_isdigit(const Facet& fac, Ch c) {
     ...
     return isdigit(c);
 }
 }}}
 boost_1_46_1/boost/format/parsing.hpp(53) : warning C4800

 should be
 {{{
 return isdigit(c) != 0;
 }}}

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