Conversation
|
The couple CI failures look pretty easy to resolve, but I wanted to ask if there was a reason you didn't remove the forward_as code itself in this PR |
Just backwards compatibility. We don't use it but we don't know if a user has it in their code |
|
I think it would probably be fine to remove something like that, but if you disagree we should at least mark it is deprecated |
|
I'll mark it as depreciated. In general I think when we remove functions that should be a major version bump. |
WardBrian
left a comment
There was a problem hiding this comment.
One comment but otherwise looks good!
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: |
|
@SteveBronder looks like there are a couple usages in https://github.com/stan-dev/stan/blob/develop/src/stan/model/indexing/assign_varmat.hpp that will need to be fixed up |
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: |
Summary
Fixes #3190 .
forward_aswas a workaround for C++14 when we did not haveif constexprand needed both sides of expressions to be able to be evaluated. Now that we have C++17 we can remove all those and cleanup a good bit of the codeTests
No new tests
Side Effects
Are there any side effects that we should be aware of?
Release notes
Remove use of
forward_asin the math libraryChecklist
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