| 146 | } |
| 147 | |
| 148 | template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&) |
| 149 | { |
| 150 | // there's a lot that we can't test here while still having this test compile! |
| 151 | // the only possible approach would be to run a script trying to compile stuff and checking that it fails. |
| 152 | // CMake can help with that. |
| 153 | |
| 154 | // verify that map-to-const don't have LvalueBit |
| 155 | typedef typename internal::add_const<PlainObjectType>::type ConstPlainObjectType; |
| 156 | VERIFY( !(internal::traits<Map<ConstPlainObjectType> >::Flags & LvalueBit) ); |
| 157 | VERIFY( !(internal::traits<Map<ConstPlainObjectType, AlignedMax> >::Flags & LvalueBit) ); |
| 158 | VERIFY( !(Map<ConstPlainObjectType>::Flags & LvalueBit) ); |
| 159 | VERIFY( !(Map<ConstPlainObjectType, AlignedMax>::Flags & LvalueBit) ); |
| 160 | } |
| 161 | |
| 162 | template<typename Scalar> |
| 163 | void map_not_aligned_on_scalar() |
no outgoing calls