diff options
author | Brad Pitcher <bradpitcher@gmail.com> | 2011-10-05 06:38:25 (GMT) |
---|---|---|
committer | Brad Pitcher <bradpitcher@gmail.com> | 2011-10-05 06:38:25 (GMT) |
commit | 0407d287b035e4f3aabf718f290eb31365fad26e (patch) | |
tree | 3eca01f2bdb206956d441977b110d842b1c9a4cc /src | |
parent | f5e0f3a531b0c8806e4ebc62cd91ca31275ae481 (diff) |
disable eigen alignment
Diffstat (limited to 'src')
-rw-r--r-- | src/dxfdata.h | 5 | ||||
-rw-r--r-- | src/linalg.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/dxfdata.h b/src/dxfdata.h index d24541c..e2f229e 100644 --- a/src/dxfdata.h +++ b/src/dxfdata.h @@ -1,5 +1,8 @@ #ifndef DXFDATA_H_ #define DXFDATA_H_ +#ifndef EIGEN_DONT_ALIGN +#define EIGEN_DONT_ALIGN +#endif #include <vector> #include <Eigen/Dense> @@ -30,7 +33,7 @@ public: } }; - std::vector<Vector2d, Eigen::aligned_allocator<Vector2d> > points; + std::vector<Vector2d> points; std::vector<Path> paths; std::vector<Dim> dims; diff --git a/src/linalg.h b/src/linalg.h index 06991cf..eb1ed3c 100644 --- a/src/linalg.h +++ b/src/linalg.h @@ -1,6 +1,8 @@ #ifndef LINALG_H_ #define LINALG_H_ - +#ifndef EIGEN_DONT_ALIGN +#define EIGEN_DONT_ALIGN +#endif #include <Eigen/Core> #include <Eigen/Geometry> |