remove extra std::forward in fwd/functor/reduce_sum loop#3323
remove extra std::forward in fwd/functor/reduce_sum loop#3323SteveBronder wants to merge 4 commits into
Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
|
@syclik can you reapprove? |
syclik
left a comment
There was a problem hiding this comment.
Nice. Moved the temp outside the loop as the last change. Approved.
Summary
Fixes #3303 by removing extra
std::forwardinfwd/functor/reduce_sum.hppTests
No new tests. I think this is a pretty reasonable potential bug that is just an extra forward reference in a loop.
Checklist
Copyright holder: Steve Bronder
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
./runTests.py test/unit)make test-headers)make test-math-dependencies)make doxygen)make cpplint)the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested