mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bugfix in Product and ei_L2_block_traits
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user