Skip to content

Commit 0656caa

Browse files
committed
update docs
1 parent d37345c commit 0656caa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stan/math/rev/core/arena_matrix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ class arena_matrix<MatrixType, require_eigen_sparse_base_t<MatrixType>>
200200
*/
201201
template <typename S, require_convertible_t<S&, PlainObject>* = nullptr,
202202
require_not_same_t<S, PlainObject>* = nullptr>
203-
arena_matrix(S&& x) // NOLINT
204-
: arena_matrix(PlainObject(x)) {}
203+
arena_matrix(S&& other) // NOLINT
204+
: arena_matrix(PlainObject(std::forward<S>(other))) {}
205205

206206
/**
207207
* Constructs `arena_matrix` from an expression. This makes an assumption that

0 commit comments

Comments
 (0)