From 01572b9f54e769a7d1bb3d5073c264a5fbc7ce42 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 10 Mar 2008 17:23:11 +0000 Subject: big change: MatrixBase only takes one template parameter "Derived", the template parameter "Scalar" is removed. This is achieved by introducting a template struct Scalar to achieve a forward-declaration of the Scalar typedefs. --- doc/examples/class_FixedBlock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/examples/class_FixedBlock.cpp') diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp index 18dda46e7..b643d1148 100644 --- a/doc/examples/class_FixedBlock.cpp +++ b/doc/examples/class_FixedBlock.cpp @@ -2,16 +2,16 @@ USING_PART_OF_NAMESPACE_EIGEN using namespace std; -template +template Eigen::Block -topLeft2x2Corner(MatrixBase& m) +topLeft2x2Corner(MatrixBase& m) { return Eigen::Block(m.asArg(), 0, 0); } -template +template const Eigen::Block -topLeft2x2Corner(const MatrixBase& m) +topLeft2x2Corner(const MatrixBase& m) { return Eigen::Block(m.asArg(), 0, 0); } -- cgit v1.2.3