mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
patch by Patrick Mihelich: use empty struct + anonymous namespace for NoChange
This commit is contained in:
parent
60e6ac3178
commit
6ccb97620a
@ -241,7 +241,16 @@ enum {
|
|||||||
DontAlign = 0x2
|
DontAlign = 0x2
|
||||||
};
|
};
|
||||||
|
|
||||||
enum NoChange_t { NoChange };
|
/* the following could as well be written:
|
||||||
|
* enum NoChange_t { NoChange };
|
||||||
|
* but it feels dangerous to disambiguate overloaded functions on enum/integer types.
|
||||||
|
* If on some platform it is really impossible to get rid of "unused variable" warnings, then
|
||||||
|
* we can always come back to that solution.
|
||||||
|
*/
|
||||||
|
struct NoChange_t {};
|
||||||
|
namespace {
|
||||||
|
EIGEN_UNUSED NoChange_t NoChange;
|
||||||
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IsDense = 0,
|
IsDense = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user