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

Replace Boost.MPL with Boost.MP11 in promote_integral.hpp #441

Merged
merged 2 commits into from
Mar 10, 2020

Conversation

codejaeger
Copy link
Contributor

@codejaeger codejaeger commented Mar 5, 2020

Description

This PR is to replace all occurrences of Boost.mpl's meta functions with equivalents from Boost.mp11 as mentioned in #280. I have tried to make minimal number of changes to the source code while using only functionality from Boost.mp11 . I have also tried using other ways to do the replacement using mp_find_if or mp_cond from the mp11 docs but this PR proposes using mp_rest to recurse over the type list.

References

https://www.boost.org/doc/libs/develop/libs/mp11/doc/html/mp11.html#mp_restl
https://www.boost.org/doc/libs/develop/libs/mp11/doc/html/mp11.html#mp_find_ifl_p
https://www.boost.org/doc/libs/develop/libs/mp11/doc/html/mp11.html#mp_condc_t_r

Tasklist

  • Add test case(s) Check existing tests pass.
  • Ensure all CI builds pass
  • Review and approve

@mloskot mloskot added the cat/enhancement Improvements, but not fixes addressing identified bugs label Mar 8, 2020
@mloskot
Copy link
Member

mloskot commented Mar 8, 2020

@codejaeger Is this ready to review?

@codejaeger codejaeger force-pushed the replace_mpl_with_mp11 branch from bf22c54 to 8f8ea7d Compare March 9, 2020 06:09
@codejaeger
Copy link
Contributor Author

@mloskot To give an overview of what changes I made and what not:
Changes -

  1. Replaced mpl meta functions with mp11 equivalents
  2. Updated license information (although not entirely sure if I meet the originality threshold mentioned over here)

Did not change -

  1. Core logic of the code
  2. Comments since they seemed mp(11/l) independent

I think it is ready for review. Thanks.

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.

@codejaeger This looks good. Could you just address parameter renaming?

include/boost/gil/promote_integral.hpp Outdated Show resolved Hide resolved
@mloskot mloskot added this to the Boost 1.73 milestone Mar 9, 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.

Thank you!

I will merge this as soon as all CI jobs complete.

@mloskot mloskot merged commit fb9ed1d into boostorg:develop Mar 10, 2020
@mloskot mloskot added cat/refactoring Any nonfunctional changes core boost/gil labels Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/enhancement Improvements, but not fixes addressing identified bugs cat/refactoring Any nonfunctional changes core boost/gil
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants