| 32 | } |
| 33 | |
| 34 | template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&) |
| 35 | { |
| 36 | // verify that ref-to-const don't have LvalueBit |
| 37 | typedef typename internal::add_const<PlainObjectType>::type ConstPlainObjectType; |
| 38 | VERIFY( !(internal::traits<Ref<ConstPlainObjectType> >::Flags & LvalueBit) ); |
| 39 | VERIFY( !(internal::traits<Ref<ConstPlainObjectType, Aligned> >::Flags & LvalueBit) ); |
| 40 | VERIFY( !(Ref<ConstPlainObjectType>::Flags & LvalueBit) ); |
| 41 | VERIFY( !(Ref<ConstPlainObjectType, Aligned>::Flags & LvalueBit) ); |
| 42 | } |
| 43 | |
| 44 | template<typename B> |
| 45 | EIGEN_DONT_INLINE void call_ref_1(Ref<SparseMatrix<float> > a, const B &b) { VERIFY_IS_EQUAL(a.toDense(),b.toDense()); } |
no outgoing calls