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

vktBindingStagesTests.cpp:445:57: error: call of overloaded 'abs(float)' is ambiguous #483

Open
mgorchak-blackberry opened this issue Sep 3, 2024 · 1 comment

Comments

@mgorchak-blackberry
Copy link

if (std::abs(writeDataPtr[i] - (float(i) + 1.0f)) >= 0.02f)

Hi,

While compiling this on QNX it raises the error:

vktBindingStagesTests.cpp:445:57: error: call of overloaded 'abs(float)' is ambiguous

cmath header must be included to avoid this error, stdlib.h do not declare std::abs for float argument, cmath does.

Thank you!

@mgorchak-blackberry
Copy link
Author

std::abs is used twice in this module, next one is here:

vktBindingStagesTests.cpp:462:60: error: call of overloaded 'abs(float)' is ambiguous

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

No branches or pull requests

1 participant