void setCheck(E e) { ASSERT_TRUE((fis_same<typename SetterHelper<M, m>::type>( SetterHelper<M, m>::function))); F set = SetterHelper<M, m>::function; // Build invalid objet Cont<E> cont; // Sets valid value ASSERT_TRUE(set(cont, e)); // Check that value is set ASSERT_TRUE(e == cont.getConst()); }
static T getConst(const Cont<T> &cont) { return cont.getConst(); }