aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_FixedVectorBlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/class_FixedVectorBlock.cpp')
-rw-r--r--doc/examples/class_FixedVectorBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/class_FixedVectorBlock.cpp b/doc/examples/class_FixedVectorBlock.cpp
index 9be7d8d71..c88c9fbf1 100644
--- a/doc/examples/class_FixedVectorBlock.cpp
+++ b/doc/examples/class_FixedVectorBlock.cpp
@@ -11,10 +11,10 @@ firstTwo(MatrixBase<Derived>& v)
}
template<typename Derived>
-const Eigen::VectorBlock<Derived, 2>
+const Eigen::VectorBlock<const Derived, 2>
firstTwo(const MatrixBase<Derived>& v)
{
- return Eigen::VectorBlock<Derived, 2>(v.derived(), 0);
+ return Eigen::VectorBlock<const Derived, 2>(v.derived(), 0);
}
int main(int, char**)