Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include cmath explicitly. #1091

Merged
merged 2 commits into from
Oct 28, 2021
Merged

Include cmath explicitly. #1091

merged 2 commits into from
Oct 28, 2021

Conversation

mahge
Copy link
Contributor

@mahge mahge commented Oct 28, 2021

Related Issues

None

Purpose

The file src/OMSimulatorLib/ComponentFMUCS.h uses std::isnan and std::isinf from <cmath> without including the header.
Compilation of OMSimulator breaks on old compilers (e.g. gcc-5) because the header might not be included indirectly.

Approach

Include the header explictly.

mahge and others added 2 commits October 28, 2021 16:18
  - The file uses std::isnan and std::isinf from cmath.
  - It breaks on old compilers (e.g. gcc-5) because the header might not
    be included indirectly.
Copy link
Member

@lochel lochel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lochel lochel enabled auto-merge (squash) October 28, 2021 13:45
@lochel lochel merged commit ad66bdf into OpenModelica:master Oct 28, 2021
@mahge mahge deleted the include_cmath branch October 28, 2021 15:49
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.

2 participants