aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-12-16 13:06:47 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-12-16 13:06:47 +0100
commite0aa29121fe72ea5f8e420d363b18ac9d7a96949 (patch)
tree9df50f22b30cebd89d674d6d506e196d88b3f973 /Eigen
parentc35fcf3bbdbc746e0739c7ae3a6865ccf606d5ed (diff)
this really fix the previous warning
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/util/XprHelper.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h
index eb7f30ced..622c84a8e 100644
--- a/Eigen/src/Core/util/XprHelper.h
+++ b/Eigen/src/Core/util/XprHelper.h
@@ -28,7 +28,13 @@
// just a workaround because GCC seems to not really like empty structs
#ifdef __GNUG__
- class ei_empty_struct{char _ei_dummy_;};
+ struct ei_empty_struct
+ {
+ EIGEN_ALWAYS_INLINE_ATTRIB ei_empty_struct() {}
+ EIGEN_ALWAYS_INLINE_ATTRIB ei_empty_struct(const ei_empty_struct&) {}
+ EIGEN_ALWAYS_INLINE_ATTRIB ei_empty_struct& operator=(const ei_empty_struct&) { return *this; }
+ char _ei_dummy_;
+ };
#define EIGEN_EMPTY_STRUCT : Eigen::ei_empty_struct
#else
#define EIGEN_EMPTY_STRUCT