We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ee85d commit 2e83467Copy full SHA for 2e83467
stan/math/prim/fun/eval.hpp
@@ -3,6 +3,8 @@
3
4
#include <stan/math/prim/meta.hpp>
5
#include <stan/math/prim/fun/Eigen.hpp>
6
+#include <cstddef>
7
+#include <vector>
8
9
namespace stan {
10
namespace math {
@@ -25,11 +27,11 @@ inline decltype(auto) eval(T&& arg) {
25
27
*
26
28
* @tparam T Input type
29
* @param[in] arg Input argument
- * @return Forwarded input argument
30
+ * @return Eval'd argument
31
**/
32
template <typename T,
33
require_eigen_t<T>* = nullptr>
-inline decltype(auto) eval(T&& arg) {
34
+inline decltype(auto) eval(T arg) {
35
return arg.eval();
36
}
37
0 commit comments