You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the current wording, the above should be rejected as std::reduce has the following Mandates ([reduce]):
Mandates: All of
(5.1) - binary_op(init, *first),
(5.2) - binary_op(*first, init),
(5.3) - binary_op(init, init), and
(5.4) - binary_op(*first, *first)
are convertible to T.
Not sure if std::transform_reduce has the same issue.
The text was updated successfully, but these errors were encountered:
https://godbolt.org/z/5T4cn95nv
According to the current wording, the above should be rejected as
std::reduce
has the following Mandates ([reduce]):Not sure if
std::transform_reduce
has the same issue.The text was updated successfully, but these errors were encountered: