diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-21 18:39:24 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-21 18:39:24 +0200 |
commit | 4bac6fbe1ea9414f009d8dcb3d98cab7fdf109d1 (patch) | |
tree | 98822535dd791cede8b2afcf69253df94b456acc /test | |
parent | 80b6e5f2786e80f5123f970d0f8023ddb7ef7b33 (diff) |
The intrin.h header needs to be included after cmath in order to prevent warnigns.
Fixed (hopefully) final Index realted warnings.
Diffstat (limited to 'test')
-rw-r--r-- | test/geo_alignedbox.cpp | 11 | ||||
-rw-r--r-- | test/map.cpp | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/test/geo_alignedbox.cpp b/test/geo_alignedbox.cpp index 9c347df00..d1164b193 100644 --- a/test/geo_alignedbox.cpp +++ b/test/geo_alignedbox.cpp @@ -35,12 +35,13 @@ template<typename BoxType> void alignedbox(const BoxType& _box) /* this test covers the following files: AlignedBox.h */ - typedef typename BoxType::Index Index; - const Index dim = _box.dim(); + typedef typename BoxType::Index Index; typedef typename BoxType::Scalar Scalar; typedef typename NumTraits<Scalar>::Real RealScalar; typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; + const Index dim = _box.dim(); + VectorType p0 = VectorType::Random(dim); VectorType p1 = VectorType::Random(dim); while( p1 == p0 ){ @@ -82,12 +83,14 @@ template<typename BoxType> void alignedbox(const BoxType& _box) template<typename BoxType> void alignedboxCastTests(const BoxType& _box) { - // casting - const int dim = _box.dim(); + // casting + typedef typename BoxType::Index Index; typedef typename BoxType::Scalar Scalar; typedef typename NumTraits<Scalar>::Real RealScalar; typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; + const Index dim = _box.dim(); + VectorType p0 = VectorType::Random(dim); VectorType p1 = VectorType::Random(dim); diff --git a/test/map.cpp b/test/map.cpp index 98d513588..fa4427ba3 100644 --- a/test/map.cpp +++ b/test/map.cpp @@ -26,9 +26,10 @@ template<typename VectorType> void map_class_vector(const VectorType& m) { + typedef typename VectorType::Index Index; typedef typename VectorType::Scalar Scalar; - int size = m.size(); + Index size = m.size(); // test Map.h Scalar* array1 = ei_aligned_new<Scalar>(size); |