Skip to content

Commit 90cf65c

Browse files
committed
test: remove auto
1 parent 9fc9559 commit 90cf65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/eigen_ref.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ template <typename MatType>
4141
Eigen::Ref<MatType> editBlock(Eigen::Ref<MatType> mat, Eigen::DenseIndex i,
4242
Eigen::DenseIndex j, Eigen::DenseIndex n,
4343
Eigen::DenseIndex m) {
44-
auto B = mat.block(i, j, n, m);
44+
typename Eigen::Ref<MatType>::BlockXpr B = mat.block(i, j, n, m);
4545
Eigen::Map<VectorXd> view(B.data(), B.size());
4646
view.setLinSpaced(0., (double)view.size() - 1.);
4747
return mat;

0 commit comments

Comments
 (0)