-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<numeric>
: transform_inclusive_scan
passes output values to the binary (reduce) operation
#3783
Comments
numeric
: transform_inclusive_scan
passes output values to the binary (reduce) operation<numeric>
: transform_inclusive_scan
passes output values to the binary (reduce) operation
It seems the usage of Lines 4841 to 4847 in 15aea98
|
It seems that we should pass We should also pass the beginning "input" forward iterator. Perhaps we should avoid moving. Edit: The standard doesn't seem to require parts of output range (whose element type is the value type of |
<execution>: transform_inclusive_scan transform_exclusive_scan exclusive_scan inclusive_scan passes output values to the binary (reduce) operation with par policy
Describe the bug
The overload of
transform_inclusive_scan
that takes execution policy and initial value arguments passes the result of dereferencing the output iterator to the binary reduce operation.Doing so requires that the output value type can be converted to the types expected by the binary operation.
Command-line test case
See this example here: https://godbolt.org/z/4fscYPcTW
It's working fine with the latest gcc.
Expected behavior
transform_inclusive_scan
does not pass the result of dereferencing the output iterator to the binary operation.STL version
The text was updated successfully, but these errors were encountered: