Skip to content

error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'? #17

@barracuda156

Description

@barracuda156
cum_median.cpp: In function 'int cum_median(int, double*, double*, double*)':
cum_median.cpp:10:9: error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'?
   10 |     if(!isfinite(data_value)){
      |         ^~~~~~~~
      |         std::isfinite
In file included from /opt/local/include/LegacySupport/cmath:54,
                 from PiecewiseFunction.h:16,
                 from cum_median.cpp:3:
/opt/local/include/gcc12/c++/cmath:578:5: note: 'std::isfinite' declared here
  578 |     isfinite(_Tp __x)
      |     ^~~~~~~~
make: *** [cum_median.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions