
16 Jun
2005
16 Jun
'05
1:23 p.m.
I have a custom stream that I am adaptiing to, so I build oarchive and
iarchive classes derived from boost::archive::detail::common_xarchive
according to the documentation. I have a function that looks like the
following to handle the specifics of loading and saving.
template<class T>
void load(T & t)
{
// load data...
}
This seems to work for everything except std::string's. I noticed it when
writing out a std::map