Skip to content

Commit a74a277

Browse files
committed
missing template in std::forward
1 parent 5a375c7 commit a74a277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stan/math/prim/fun/plus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace math {
1515
*/
1616
template <typename T>
1717
inline T plus(T&& x) {
18-
return std::forward(x);
18+
return std::forward<T>(x);
1919
}
2020

2121
} // namespace math

0 commit comments

Comments
 (0)