Skip to content

tidbits: use C++ cmath functions#638

Open
tritao wants to merge 1 commit into
coin3d:masterfrom
tritao:fix-cmath-isinf-isnan-upstream
Open

tidbits: use C++ cmath functions#638
tritao wants to merge 1 commit into
coin3d:masterfrom
tritao:fix-cmath-isinf-isnan-upstream

Conversation

@tritao

@tritao tritao commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use std::isinf and std::isnan from <cmath> in tidbits.cpp.
  • Preserve coin_isinf()'s documented -1 / +1 return contract with std::signbit.

Motivation

Some C++ environments do not expose the unqualified C isinf and isnan names when including <cmath>. Coin detects these functions through the C math.h header, but tidbits.cpp is C++ code, so using the std:: namespace is the portable form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant