void runTest() { std::stringstream oss; m_A.marshal_out(oss); SparseVector<Pairing<GA, GB>> B; std::stringstream iss(oss.str()); checkPass(B.marshal_in(iss)); checkPass(m_A == B); }
void runTest() { std::stringstream oss; m_A.marshal_out( oss, [] (std::ostream& o, const Pairing<GA, GB>& a) { a.marshal_out_raw(o); }); SparseVector<Pairing<GA, GB>> B; std::stringstream iss(oss.str()); checkPass( B.marshal_in( iss, [] (std::istream& i, Pairing<GA, GB>& a) { return a.marshal_in_raw(i); })); checkPass(m_A == B); }