bug #1222: fix compilation in AutoDiffScalar and add respective unit test

This commit is contained in:
Gael Guennebaud
2016-05-18 16:00:11 +02:00
parent 5a71eb5985
commit 448d9d943c
2 changed files with 11 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ class AutoDiffScalar
template<typename OtherDerType>
AutoDiffScalar(const AutoDiffScalar<OtherDerType>& other
#ifndef EIGEN_PARSED_BY_DOXYGEN
, typename internal::enable_if<internal::is_same<Scalar,typename OtherDerType::Scalar>::value,void*>::type = 0
, typename internal::enable_if<internal::is_same<Scalar, typename internal::traits<typename internal::remove_all<OtherDerType>::type>::Scalar>::value,void*>::type = 0
#endif
)
: m_value(other.value()), m_derivatives(other.derivatives())