MCPcopy Create free account
hub / github.com/PX4/eigen / check_const_correctness

Function check_const_correctness

test/ref.cpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142template<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
152template<typename B>
153EIGEN_DONT_INLINE void call_ref_1(Ref<VectorXf> a, const B &b) { VERIFY_IS_EQUAL(a,b); }

Callers 1

test_refFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_refFunction · 0.56