Bug 261501

Summary: missing std:: for isnan and isinf
Product: [Applications] kcalc Reporter: Jeremy Lavergne <snc>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jeremy Lavergne 2010-12-28 23:52:53 UTC
Version:           unspecified (using KDE 4.5.90) 
OS:                OS X

in kdeutils-4.5.90/kcalc/knumber/knumber_priv.cpp, the std:: namespace is missing for isnan and isinf 

Reproducible: Didn't try

Steps to Reproduce:
Attempt to build in MacPorts

Actual Results:  
Builds fails

Expected Results:  
Successful build

This is the same nature as Bug #261423: std:: was missing.
Comment 1 Evan Teran 2010-12-29 03:57:19 UTC
This is a tough case, because neither isnan or isinf are defined by the c++ standard (they are in c99) so there is no guarantee that they are in the std:: namespace.

Just to be clear, the issue is that on your macports attempted build this works:

std::isinf(x);

while

isinf(x);

does not?
Comment 2 Jeremy Lavergne 2010-12-29 03:59:53 UTC
By adding `using namespace std` it successfully built.
Comment 3 Evan Teran 2011-01-02 08:27:13 UTC
should be fixed in current SVN