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

Add CombineTo<R>() parameters generator #4727

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Stoorx
Copy link

@Stoorx Stoorx commented Feb 24, 2025

CombineTo() allows the user to combine two or more sequences to produce values of a Cartesian product of those sequences' elements converted to the required type. The behavior of this function is the same as already implemented and well-known Combine().

CombineTo() allows to use struct-parametrized tests directly instead of dealing with tuples. Maybe the better naming for this function is CombineAs()

The behavior of other functions have not been changed (according to the tests passing). The additional basic test cases are provided for this feature. Feel free to give me some ideas to make better coverage.

Dear maintainers, please note, this feature is very necessary in GROMACS project and we want it as soon as possible. I see that 1.16.0 has been released. Maybe it is possible to make the new release faster and include this feature in the upcoming release somehow? Or maybe backport it as 1.16.1 too?

Copy link

google-cla bot commented Feb 24, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Stoorx
Copy link
Author

Stoorx commented Feb 25, 2025

@derekmauro As soon as I understand you are the one of maintainers. Can you please review this feature and help to bring it faster to the release? We really need it in GROMACS.

Stoorx added 4 commits March 9, 2025 23:04
`CombineTo<R>()` allows to construct the required type directly from combined arguments. As it would be a composition of `ConvertGenerator()` and `Combine()`, but without `std::tuple` in between.
@Stoorx
Copy link
Author

Stoorx commented Mar 9, 2025

Rebased onto main and adapted to use the new version of ConvertGenerator

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.

1 participant