diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-06-29 18:17:17 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-06-29 18:17:17 +0200 |
commit | 82c4a755af9543143526a9385fda8a5b487545d4 (patch) | |
tree | 29fc37b0187a2cb04d6642ad9ef8f963e0e5f2e2 /Eigen/src | |
parent | e5de9e5226495f6d012dcace3bb227f6ba1e413c (diff) |
disable empty struct trick for buggy gcc 4.3
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/util/XprHelper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index 393e6696c..7e6cb3381 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -27,10 +27,10 @@ #define EIGEN_XPRHELPER_H // just a workaround because GCC seems to not really like empty structs -#ifdef __GNUG__ +#if (defined __GNUG__) && !((__GNUC__==4) && (__GNUC_MINOR__==3)) #define EIGEN_EMPTY_STRUCT_CTOR(X) \ EIGEN_STRONG_INLINE X() {} \ - EIGEN_STRONG_INLINE X(const X&) {} + EIGEN_STRONG_INLINE X(const X& ) {} #else #define EIGEN_EMPTY_STRUCT_CTOR(X) #endif |