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
cannot cartesian_product(enumerate, enumerate) | transform #1422
Comments
Doesn't work for simpler views too:
|
Nope, that code works fine. auto enumerated = v1 | ranges::views::enumerate;
auto cp = ranges::views::cartesian_product(enumerated, enumerated); This is a legit problem. After the above, the range library doesn't think value type: The computed common reference of these types is: The trouble is, an lvalue reference to the value type is not convertible to the common reference. I think the problem here is that the computed common reference of |
…le|pair] instead of a std::[tuple|pair]; fixes #1422
Sorry, it failed for me when I used a regular reference to for the tuple:
I didn't compare the error messages carefully enough. Nevermind. |
I am enumerating a vector of vectors and then I take the cartesian product of the enumeration with itself (which works fine), but when I try to transform the result it fails. The following link contains the reproducer:
https://wandbox.org/permlink/AL9HJ8pWbBBntXuN
The text was updated successfully, but these errors were encountered: