Design: Why are array inputs to Block-Algorithms not const #1288
-
I.e. why
Instead of
? |
Beta Was this translation helpful? Give feedback.
Answered by
gevtushenko
Jan 17, 2024
Replies: 1 comment 2 replies
-
Hello @pauleonix! I agree, it should be const. I can speculate that the initial reason was to allow binary operator to accept non-const lvalues. We probably need something along the lines of std::reduce in our docs as well:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pauleonix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @pauleonix!
I agree, it should be const. I can speculate that the initial reason was to allow binary operator to accept non-const lvalues. We probably need something along the lines of std::reduce in our docs as well: