Make eigen_packet_wrapper trivial for c++11.

This commit is contained in:
Antonio Sánchez 2025-10-02 17:53:19 +00:00
parent d71c30c478
commit 0295f81a83

View File

@ -160,7 +160,11 @@ struct eigen_packet_wrapper
{
EIGEN_ALWAYS_INLINE operator T&() { return m_val; }
EIGEN_ALWAYS_INLINE operator const T&() const { return m_val; }
#if EIGEN_HAS_CXX11
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() = default;
#else
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() {};
#endif
EIGEN_ALWAYS_INLINE eigen_packet_wrapper(const T &v) : m_val(v) {}
EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) {
m_val = v;