aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_Block.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-06 12:43:01 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-06 12:43:01 -0500
commit02ee26a3a51675969016bab4e3e406d58b0979b6 (patch)
tree7572c75c1ccdc8790f36f73647cff1a75b7e8b84 /doc/examples/class_Block.cpp
parent182ed9ba6c0d7ee7a963765eb8891faf28a6b4b2 (diff)
fix build of class Block examples
Diffstat (limited to 'doc/examples/class_Block.cpp')
-rw-r--r--doc/examples/class_Block.cpp4
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**)