this really fix the previous warning

This commit is contained in:
Gael Guennebaud 2009-12-16 13:06:47 +01:00
parent c35fcf3bbd
commit e0aa29121f

View File

@ -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