MCPcopy Create free account
hub / github.com/Derious/cuMPC / check_const_correctness

Function check_const_correctness

dependence/eigen-3.4.0/test/ref.cpp:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&)
208{
209 // verify that ref-to-const don't have LvalueBit
210 typedef typename internal::add_const<PlainObjectType>::type ConstPlainObjectType;
211 VERIFY( !(internal::traits<Ref<ConstPlainObjectType> >::Flags & LvalueBit) );
212 VERIFY( !(internal::traits<Ref<ConstPlainObjectType, Aligned> >::Flags & LvalueBit) );
213 VERIFY( !(Ref<ConstPlainObjectType>::Flags & LvalueBit) );
214 VERIFY( !(Ref<ConstPlainObjectType, Aligned>::Flags & LvalueBit) );
215}
216
217template<typename B>
218EIGEN_DONT_INLINE void call_ref_1(Ref<VectorXf> a, const B &b) { VERIFY_IS_EQUAL(a,b); }

Callers 1

EIGEN_DECLARE_TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected