mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Workaround ambiguous call of init1 with MSVC.
This commit is contained in:
parent
922694a2d1
commit
7f15f27a9e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user