diff options
Diffstat (limited to 'doc/examples/class_Block.cpp')
-rw-r--r-- | doc/examples/class_Block.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp index c6144cef5..ace719afc 100644 --- a/doc/examples/class_Block.cpp +++ b/doc/examples/class_Block.cpp @@ -11,10 +11,10 @@ topLeftCorner(MatrixBase<Derived>& m, int rows, int cols) } template<typename Derived> -const Eigen::Block<Derived> +const Eigen::Block<const Derived> topLeftCorner(const MatrixBase<Derived>& m, int rows, int cols) { - return Eigen::Block<Derived>(m.derived(), 0, 0, rows, cols); + return Eigen::Block<const Derived>(m.derived(), 0, 0, rows, cols); } int main(int, char**) |