| 140 | } |
| 141 | |
| 142 | template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&) |
| 143 | { |
| 144 | // verify that ref-to-const don't have LvalueBit |
| 145 | typedef typename internal::add_const<PlainObjectType>::type ConstPlainObjectType; |
| 146 | VERIFY( !(internal::traits<Ref<ConstPlainObjectType> >::Flags & LvalueBit) ); |
| 147 | VERIFY( !(internal::traits<Ref<ConstPlainObjectType, Aligned> >::Flags & LvalueBit) ); |
| 148 | VERIFY( !(Ref<ConstPlainObjectType>::Flags & LvalueBit) ); |
| 149 | VERIFY( !(Ref<ConstPlainObjectType, Aligned>::Flags & LvalueBit) ); |
| 150 | } |
| 151 | |
| 152 | template<typename B> |
| 153 | EIGEN_DONT_INLINE void call_ref_1(Ref<VectorXf> a, const B &b) { VERIFY_IS_EQUAL(a,b); } |