aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/smallvectors.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-02-28 12:38:12 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-02-28 12:38:12 +0000
commit6907886a156c4b94ec7530351b271e1c1bc5b81b (patch)
tree9c9431ba83e0234e5f199031ed48915ad6365422 /test/smallvectors.cpp
parentc67e717404258d3625a74c67f50be34939af6d95 (diff)
prefix global functions with ei_ as previous solution was rather
fragile. also fix compilation with g++ 4.3.
Diffstat (limited to 'test/smallvectors.cpp')
-rw-r--r--test/smallvectors.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/smallvectors.cpp b/test/smallvectors.cpp
index 3496733e2..458b79ce7 100644
--- a/test/smallvectors.cpp
+++ b/test/smallvectors.cpp
@@ -32,10 +32,10 @@ template<typename Scalar> void smallVectors()
typedef Matrix<Scalar, 1, 2> V2;
typedef Matrix<Scalar, 3, 1> V3;
typedef Matrix<Scalar, 1, 4> V4;
- Scalar x1 = random<Scalar>(),
- x2 = random<Scalar>(),
- x3 = random<Scalar>(),
- x4 = random<Scalar>();
+ Scalar x1 = ei_random<Scalar>(),
+ x2 = ei_random<Scalar>(),
+ x3 = ei_random<Scalar>(),
+ x4 = ei_random<Scalar>();
V2 v2(x1, x2);
V3 v3(x1, x2, x3);
V4 v4(x1, x2, x3, x4);