diff options
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/class_Cast.cpp | 8 |
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 >(); } |