diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-08 15:37:13 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-08 15:37:13 +0000 |
commit | eb7dcbbfce3b82f03722eea9065cc0a6d37e9fc1 (patch) | |
tree | e1b05844d7a1c0ea058ee13dc199fa475f436da7 /test | |
parent | 1d52bd4cad64d8d8662f40c11210b705351b43ab (diff) |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW didn't actually need to get the class
name as parameter
Diffstat (limited to 'test')
-rw-r--r-- | test/dynalloc.cpp | 4 | ||||
-rw-r--r-- | test/unalignedassert.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index d829008d5..916193df0 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -27,7 +27,7 @@ // test compilation with both a struct and a class... struct MyStruct { - EIGEN_MAKE_ALIGNED_OPERATOR_NEW(MyStruct) + EIGEN_MAKE_ALIGNED_OPERATOR_NEW char dummychar; Vector4f avec; }; @@ -35,7 +35,7 @@ struct MyStruct class MyClassA { public: - EIGEN_MAKE_ALIGNED_OPERATOR_NEW(MyClassA) + EIGEN_MAKE_ALIGNED_OPERATOR_NEW char dummychar; Vector4f avec; }; diff --git a/test/unalignedassert.cpp b/test/unalignedassert.cpp index 8e0486e92..cfb44dc84 100644 --- a/test/unalignedassert.cpp +++ b/test/unalignedassert.cpp @@ -57,14 +57,14 @@ struct Bad6 struct Good7 { - EIGEN_MAKE_ALIGNED_OPERATOR_NEW(Good7) + EIGEN_MAKE_ALIGNED_OPERATOR_NEW Vector2d m; float f; // make the struct have sizeof%16!=0 to make it a little more tricky when we allow an array of 2 such objects }; struct Good8 { - EIGEN_MAKE_ALIGNED_OPERATOR_NEW(Good8) + EIGEN_MAKE_ALIGNED_OPERATOR_NEW float f; // try the f at first -- the EIGEN_ALIGN_128 attribute of m should make that still work Matrix4f m; }; @@ -77,7 +77,7 @@ struct Good9 template<bool Align> struct Depends { - EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(Depends,Align) + EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(Align) Vector2d m; float f; }; |