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

added 'using std::abs' in types.h to avoid Linux bug #7148

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Aug 21, 2020

This fixes a bug where compilation occurs on Ubuntu 16, where GCC decides to use abs(int) and this obviously causes bad results. The global ::abs() should really never be used, but I found no good way of removing it.

Tracked on RS5-8641

@maloel maloel requested a review from ev-mp August 21, 2020 06:36
Copy link
Collaborator

@ev-mp ev-mp left a comment

Choose a reason for hiding this comment

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

That will work, but imo still it is safer to user explicit alternatives instead of std::abs to amplify intend

@ev-mp ev-mp merged commit ee2dfa6 into IntelRealSense:development Aug 24, 2020
@maloel maloel deleted the abs branch March 25, 2021 14:25
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