Workaround ambiguous call of init1 with MSVC.

This commit is contained in:
Gael Guennebaud 2014-07-22 17:01:34 +02:00
parent 922694a2d1
commit 7f15f27a9e

View File

@ -721,7 +721,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type
EIGEN_STRONG_INLINE void _init1(const Index& val0, EIGEN_STRONG_INLINE void _init1(const Index& val0,
typename internal::enable_if< (!internal::is_same<Index,Scalar>::value) typename internal::enable_if< (!internal::is_same<Index,Scalar>::value)
&& Base::SizeAtCompileTime==1 && Base::SizeAtCompileTime==1
&& internal::is_convertible<T, Scalar>::value,T>::type* = 0) && internal::is_convertible<T, Scalar>::value,T*>::type* = 0)
{ {
EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(PlainObjectBase, 1) EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(PlainObjectBase, 1)
m_storage.data()[0] = Scalar(val0); m_storage.data()[0] = Scalar(val0);