From 837f1ae59c7e71a0524410271d1553b1d0e77e66 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 28 Jan 2011 11:23:02 +0100 Subject: fix compilation with old gcc --- unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h') diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index a878b221f..455adcadb 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -478,8 +478,8 @@ struct scalar_product_traits,T> inline const Eigen::AutoDiffScalar::type>::Scalar>, const typename Eigen::internal::remove_all::type> > \ FUNC(const Eigen::AutoDiffScalar& x) { \ using namespace Eigen; \ - typedef typename internal::traits::type>::Scalar Scalar; \ - typedef AutoDiffScalar, const typename internal::remove_all::type> > ReturnType; \ + typedef typename Eigen::internal::traits::type>::Scalar Scalar; \ + typedef AutoDiffScalar, const typename Eigen::internal::remove_all::type> > ReturnType; \ CODE; \ } @@ -510,8 +510,8 @@ namespace std pow(const Eigen::AutoDiffScalar& x, typename Eigen::internal::traits::Scalar y) { using namespace Eigen; - typedef typename internal::traits::Scalar Scalar; - return AutoDiffScalar, const DerType> >( + typedef typename Eigen::internal::traits::Scalar Scalar; + return AutoDiffScalar, const DerType> >( std::pow(x.value(),y), x.derivatives() * (y * std::pow(x.value(),y-1))); } -- cgit v1.2.3