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

Remove unnecessary numeric_cast in hsv.hpp #530

Merged
merged 1 commit into from
Nov 22, 2020

Conversation

Mike-Devel
Copy link
Contributor

@Mike-Devel Mike-Devel commented Nov 19, 2020

Description

Removes an unnecessary numeric_cast in include\boost\gil\extension\toolbox\color_spaces\hsv.hpp that casts from float32_t to float32_t.
This removes the only dependency on Boost.NumericConversion I could find

References

https://cpplang.slack.com/archives/C27KZLB0X/p1605793604490300

Tasklist

  • Ensure all CI builds pass
  • Review and approve

Both temp_red and max_color are float32_t so the result of the subraction already has the right type.
This should also remove the only dependency on Boost.NumericConversion
@mloskot mloskot added this to the Boost 1.76+ milestone Nov 22, 2020
@mloskot mloskot added the cat/refactoring Any nonfunctional changes label Nov 22, 2020
Copy link
Member

@mloskot mloskot left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@mloskot mloskot merged commit 6fc7d75 into boostorg:develop Nov 22, 2020
mloskot added a commit that referenced this pull request Nov 22, 2020
@Mike-Devel Mike-Devel deleted the patch-1 branch November 22, 2020 21:51
@mloskot mloskot mentioned this pull request May 12, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/refactoring Any nonfunctional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants