From 02ee26a3a51675969016bab4e3e406d58b0979b6 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 6 Feb 2011 12:43:01 -0500 Subject: fix build of class Block examples --- doc/examples/class_Block.cpp | 4 ++-- doc/examples/class_FixedBlock.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 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& m, int rows, int cols) } template -const Eigen::Block +const Eigen::Block topLeftCorner(const MatrixBase& m, int rows, int cols) { - return Eigen::Block(m.derived(), 0, 0, rows, cols); + return Eigen::Block(m.derived(), 0, 0, rows, cols); } int main(int, char**) diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp index 5e0e53da3..9978b32e8 100644 --- a/doc/examples/class_FixedBlock.cpp +++ b/doc/examples/class_FixedBlock.cpp @@ -11,10 +11,10 @@ topLeft2x2Corner(MatrixBase& m) } template -const Eigen::Block +const Eigen::Block topLeft2x2Corner(const MatrixBase& m) { - return Eigen::Block(m.derived(), 0, 0); + return Eigen::Block(m.derived(), 0, 0); } int main(int, char**) -- cgit v1.2.3