diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-07-18 12:02:20 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-07-18 12:02:20 +0200 |
commit | 6a3c451c1cf10bf96cd37ce0963728118d1ad3b1 (patch) | |
tree | 67fd86c0066cc2ed19edb7c1091c3b5bc2882935 /Eigen/src/Core/util/BlasUtil.h | |
parent | 0c3fe4aca502148ee57cbe1ccab04c74a6c7dfd9 (diff) |
Permits call to explicit ctor.
Diffstat (limited to 'Eigen/src/Core/util/BlasUtil.h')
-rwxr-xr-x | Eigen/src/Core/util/BlasUtil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/BlasUtil.h b/Eigen/src/Core/util/BlasUtil.h index a85ad558f..8b3b44a58 100755 --- a/Eigen/src/Core/util/BlasUtil.h +++ b/Eigen/src/Core/util/BlasUtil.h @@ -111,7 +111,7 @@ template<typename RealScalar,bool Conj> struct conj_helper<RealScalar, std::comp }; template<typename From,typename To> struct get_factor { - EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE To run(const From& x) { return x; } + EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE To run(const From& x) { return To(x); } }; template<typename Scalar> struct get_factor<Scalar,typename NumTraits<Scalar>::Real> { |