aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-12 17:25:14 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-12 17:25:14 +0000
commit6da4d9d25620a025f00331bfd36794b89119b739 (patch)
tree534e06862157ed0ffd7067bd7081d11f2c5bcb0e /doc/examples
parent2ee68a074efc1163358fb3b51fb4b23e83a05f97 (diff)
fix compilation (forgot to update that file after last big change)
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/class_Cast.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/examples/class_Cast.cpp b/doc/examples/class_Cast.cpp
index 456466d1f..68b8d2437 100644
--- a/doc/examples/class_Cast.cpp
+++ b/doc/examples/class_Cast.cpp
@@ -5,13 +5,15 @@ using namespace std;
template<typename Derived>
const Eigen::CwiseUnaryOp<
Eigen::ScalarCastOp<
- typename Eigen::NumTraits< typename Eigen::Scalar<Derived>::Type >::FloatingPoint
+ typename Eigen::NumTraits<typename Derived::Scalar>::FloatingPoint
>, Derived
>
castToFloatingPoint(const MatrixBase<Derived>& m)
{
- return m.template cast<typename Eigen::NumTraits<
- typename Eigen::Scalar<Derived>::Type>::FloatingPoint
+ return m.template cast<
+ typename Eigen::NumTraits<
+ typename Derived::Scalar
+ >::FloatingPoint
>();
}