Opened 6 years ago

#5505 new Bugs

Format : int conversion to bool warning

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Samuel Krempp
Milestone: To Be Determined Component: format
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:


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;

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Samuel Krempp.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.