diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-02-16 09:44:05 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-02-16 09:44:05 +0100 |
commit | ec032ac03b90dc6c58680a4dc858133e9a72fd1f (patch) | |
tree | 475e2ec0b46b6b8eda775352297cc6e56782bd9f /Eigen/src/Core/CwiseBinaryOp.h | |
parent | 902a7793f79d7638d8de05a091682dddf34530d1 (diff) |
Guard C++11-style default constructor. Also, this is only needed for MSVC
Diffstat (limited to 'Eigen/src/Core/CwiseBinaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseBinaryOp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h index a20cd4710..8b8de8382 100644 --- a/Eigen/src/Core/CwiseBinaryOp.h +++ b/Eigen/src/Core/CwiseBinaryOp.h @@ -100,9 +100,11 @@ class CwiseBinaryOp : typedef typename internal::remove_reference<LhsNested>::type _LhsNested; typedef typename internal::remove_reference<RhsNested>::type _RhsNested; +#if EIGEN_COMP_MSVC && EIGEN_HAS_CXX11 //Required for Visual Studio or the Copy constructor will probably not get inlined! EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CwiseBinaryOp(const CwiseBinaryOp<BinaryOp,LhsType,RhsType>&) = default; +#endif EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CwiseBinaryOp(const Lhs& aLhs, const Rhs& aRhs, const BinaryOp& func = BinaryOp()) |