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

Fixes for recent Imath deprecations #913

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

lgritz
Copy link
Contributor

@lgritz lgritz commented Feb 5, 2021

FLT_MAX was erroring for being undefined, because of some removals of
includes deep in Imath that we inadvertently depended on instead of
including <limits.h> here in OpenEXR. But that should be replaced by
std::numeric_limits<float>::max() anyway, in modern C++ style.

Also, fix some warnings due to Imath::Math<> having been marked as
deprecated and now std:: for certain math functions is preferred.

Signed-off-by: Larry Gritz lg@larrygritz.com

FLT_MAX was erroring for being undefined, because of some removals of
includes deep in Imath that we inadvertently depended on instead of
including <limits.h> here in OpenEXR. But that should be replaced by
std::numeric_limits<float>::max() anyway, in modern C++ style.

Also, fix some warnings due to Imath::Math<> having been marked as
deprecated and now std:: for certain math functions is preferred.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

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

LGTM

@lgritz
Copy link
Contributor Author

lgritz commented Feb 5, 2021

Failing Windows CI. Grrrr...

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@cary-ilm cary-ilm merged commit 4dd3e09 into AcademySoftwareFoundation:master Feb 5, 2021
@lgritz lgritz deleted the lg-limits branch February 7, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants