diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-08-24 16:00:17 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-08-24 16:00:17 +0000 |
commit | bf17467ce0418e0e9b759899f1af713f2376be1f (patch) | |
tree | e486d945dcebf510700500d376402e8c4edbf2f5 /test/meta.cpp | |
parent | 440664cd5dc20fd0f09d46fbf69ca72d34ae8e93 (diff) |
bugfix in Product and ei_L2_block_traits
Diffstat (limited to 'test/meta.cpp')
-rw-r--r-- | test/meta.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/meta.cpp b/test/meta.cpp index 21cb522be..c95c58103 100644 --- a/test/meta.cpp +++ b/test/meta.cpp @@ -26,6 +26,9 @@ void test_meta() { + typedef float & FloatRef; + typedef const float & ConstFloatRef; + VERIFY((ei_meta_if<(3<4),ei_meta_true, ei_meta_false>::ret::ret)); VERIFY(( ei_is_same_type<float,float>::ret)); VERIFY((!ei_is_same_type<float,double>::ret)); @@ -39,8 +42,13 @@ void test_meta() VERIFY(( ei_is_same_type<float,ei_cleantype<float**&>::type >::ret)); VERIFY(( ei_is_same_type<float,ei_cleantype<float* const *&>::type >::ret)); VERIFY(( ei_is_same_type<float,ei_cleantype<float* const>::type >::ret)); - + + VERIFY(( ei_is_same_type<float*,ei_unconst<const float*>::type >::ret)); VERIFY(( ei_is_same_type<float&,ei_unconst<const float&>::type >::ret)); + VERIFY(( ei_is_same_type<float&,ei_unconst<const FloatRef>::type >::ret)); + VERIFY(( ei_is_same_type<float&,ei_unconst<ConstFloatRef>::type >::ret)); + VERIFY(( ei_is_same_type<float&,ei_unconst<const ConstFloatRef>::type >::ret)); + VERIFY(( ei_is_same_type<float&,ei_unconst<float&>::type >::ret)); VERIFY(( ei_is_same_type<float,ei_unref<float&>::type >::ret)); VERIFY(( ei_is_same_type<const float,ei_unref<const float&>::type >::ret)); |