mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
this really fix the previous warning
This commit is contained in:
parent
c35fcf3bbd
commit
e0aa29121f
@ -28,7 +28,13 @@
|
|||||||
|
|
||||||
// just a workaround because GCC seems to not really like empty structs
|
// just a workaround because GCC seems to not really like empty structs
|
||||||
#ifdef __GNUG__
|
#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
|
#define EIGEN_EMPTY_STRUCT : Eigen::ei_empty_struct
|
||||||
#else
|
#else
|
||||||
#define EIGEN_EMPTY_STRUCT
|
#define EIGEN_EMPTY_STRUCT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user