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

Updates 20231012 #536

Merged
merged 15 commits into from
Oct 16, 2023
Merged

Updates 20231012 #536

merged 15 commits into from
Oct 16, 2023

Conversation

louis-langholtz
Copy link
Owner

Description - What's this PR do?

  • Updates Checked type to support any is_constructible_v type conversion instead of only non-narrowing conversions.
  • Adds direct support for some cmath functions (abs and nextafter) as CheckedMath.hpp.
  • Removes implicit conversion from Fixed.hpp in an if-statement.
  • Updates FixedMath.hpp to keep detail functions at top and adds some new math function support from cmath (isinf and floor).
  • Updates GetCircleVertices from taking unsigned number of slices to taking std::size_t.
  • Updates GetCircleVertices to reserve space before pushing elements to avoid having to relocate memory for larger numbers of slices.
  • Adds new template helpers.

- Adds some math function support for supporting Checked types.
- Expands Checked constructors to behave more like its underlying
  value_type.
- Expands Checked cast support to behave more like its underlying
  value_type.
- Avoids possibly effecting resulting units like when boost units
  enabled.
- Switches alias name of the value type from value_type to
  underlying_type.
- Loosens conversion operator support to support any constructible
  conversion request even if narrowing.
@louis-langholtz louis-langholtz added Enhancement For suggestions or changes that enhance any part of the project and isn't a bug. Docs Use when issue or pull request relates to the documentation of the project. CMake Use to associate with the CMake tool. Testbed Signifies that issue or change is specific to the Testbed application. Library For issues that effect the library and aren't specific to any particular application. labels Oct 15, 2023
@louis-langholtz louis-langholtz added this to the 2.0 Release milestone Oct 15, 2023
@louis-langholtz louis-langholtz self-assigned this Oct 15, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Library/include/playrho/detail/Checked.hpp Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@coveralls
Copy link

Coverage Status

coverage: 99.176% (+0.009%) from 99.167% when pulling dc8f658 on updates-20231012 into 0df980b on master.

@louis-langholtz louis-langholtz merged commit 08d51cd into master Oct 16, 2023
@louis-langholtz louis-langholtz deleted the updates-20231012 branch October 16, 2023 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake Use to associate with the CMake tool. Docs Use when issue or pull request relates to the documentation of the project. Enhancement For suggestions or changes that enhance any part of the project and isn't a bug. Library For issues that effect the library and aren't specific to any particular application. Testbed Signifies that issue or change is specific to the Testbed application.
Development

Successfully merging this pull request may close these issues.

2 participants