mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Applied a fix to our std::vector specialization which prevents the usage of workaround_msvc_stl_support when T is not a class.
This commit is contained in:
parent
59b944cb50
commit
a289065c73
@ -66,7 +66,13 @@ namespace Eigen {
|
|||||||
// sometimes, MSVC detects, at compile time, that the argument x
|
// sometimes, MSVC detects, at compile time, that the argument x
|
||||||
// in std::vector::resize(size_t s,T x) won't be aligned and generate an error
|
// in std::vector::resize(size_t s,T x) won't be aligned and generate an error
|
||||||
// even if this function is never called. Whence this little wrapper.
|
// even if this function is never called. Whence this little wrapper.
|
||||||
#define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) Eigen::internal::workaround_msvc_stl_support<T>
|
#define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) \
|
||||||
|
typename Eigen::internal::conditional< \
|
||||||
|
Eigen::internal::is_arithmetic<T>::value, \
|
||||||
|
T, \
|
||||||
|
Eigen::internal::workaround_msvc_stl_support<T> \
|
||||||
|
>::type
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
template<typename T> struct workaround_msvc_stl_support : public T
|
template<typename T> struct workaround_msvc_stl_support : public T
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user