Opened 9 years ago

Closed 9 years ago

#8584 closed Bugs (fixed)

Warning: is_nan_helper return [bool] but isnan is [int]

Reported by: anonymous Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc: irov13@…

Description

fpclassify.hpp

is_nan_helper

1>d:\projects\mengine\dependencies\boost\boost\math\special_functions\fpclassify.hpp(101): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) 1> d:\projects\mengine\dependencies\boost\boost\math\special_functions\fpclassify.hpp(578) : see reference to function template instantiation 'bool boost::math_detail::is_nan_helper<float>(T,const boost::true_type &)' being compiled 1> with 1> [ 1> T=float 1> ]

please remove this warning

maybe -

return (bool)isnan(t);

Change History (6)

comment:1 by Levchenko Yuriy <irov13@…>, 9 years ago

Cc: irov13@… added

comment:2 by Levchenko Yuriy <irov13@…>, 9 years ago

Summary: Warning:Warning: is_nan_helper return [bool] but isnan is [int]

comment:3 by John Maddock, 9 years ago

(In [84355]) Try and suppress msvc warning. Refs #8584.

comment:4 by John Maddock, 9 years ago

Can you please try the patch referenced in the above changeset and report back?

Many thanks.

comment:5 by Levchenko Yuriy <irov13@…>, 9 years ago

patch work fine

comment:6 by John Maddock, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.