Bug 261501 - missing std:: for isnan and isinf
Summary: missing std:: for isnan and isinf
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources macOS
: NOR normal
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-28 23:52 UTC by Jeremy Lavergne
Modified: 2011-01-02 08:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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