From fa39f81b48b4fb20410e788e39459ed448dc461d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 24 Jun 2016 11:33:30 +0200 Subject: [PATCH] Fix instantiation of ScalarBinaryOpTraits for AutoDiff. --- .../Eigen/src/AutoDiff/AutoDiffScalar.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index feaeeaf5a..0abd12210 100755 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -67,7 +67,7 @@ template class AutoDiffScalar : public internal::auto_diff_special_op <_DerType, !internal::is_same::type>::Scalar, - typename NumTraits::type>::Scalar>::Real>::value> + typename NumTraits::type>::Scalar>::Real>::value> { public: typedef internal::auto_diff_special_op @@ -497,29 +497,29 @@ struct make_coherent_impl -struct ScalarBinaryOpTraits,A_Scalar> +template +struct ScalarBinaryOpTraits,A_Scalar,BinOp> { enum { Defined = 1 }; typedef Matrix ReturnType; }; -template -struct ScalarBinaryOpTraits > +template +struct ScalarBinaryOpTraits, BinOp> { enum { Defined = 1 }; typedef Matrix ReturnType; }; -template -struct ScalarBinaryOpTraits,typename DerType::Scalar> +template +struct ScalarBinaryOpTraits,typename DerType::Scalar,BinOp> { enum { Defined = 1 }; typedef AutoDiffScalar ReturnType; }; -template -struct ScalarBinaryOpTraits > +template +struct ScalarBinaryOpTraits, BinOp> { enum { Defined = 1 }; typedef AutoDiffScalar ReturnType;