From ec032ac03b90dc6c58680a4dc858133e9a72fd1f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Sat, 16 Feb 2019 09:44:05 +0100 Subject: [PATCH] Guard C++11-style default constructor. Also, this is only needed for MSVC --- Eigen/src/Core/CwiseBinaryOp.h | 2 ++ 1 file changed, 2 insertions(+) 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::type _LhsNested; typedef typename internal::remove_reference::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&) = default; +#endif EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CwiseBinaryOp(const Lhs& aLhs, const Rhs& aRhs, const BinaryOp& func = BinaryOp())