$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [serialization] Sending user data to serialize()?
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-02-04 16:20:04
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];
}