4 Feb
2009
4 Feb
'09
9:20 p.m.
Probably trying to solve the wrong problem. Anyway try this: template< typename Archive > void A::save( Archive& archive, unsigned int ) const { archive & m_listOfB; ar << m_listOfB.size(); for(i = 0; i < s; ++i) ar << m_listOfB[i] } template< typename Archive > void A::load( Archive& archive, unsigned int ) { unsigned int s; ar >> s; m_listOfB.reserve(s); for(i = 0; i < s; ++i) ar >> m_listOfB[i]; }