I am curious why loading a vector of items from an input stream fails
using one method but works using a slightly different method.
Given a load method:
template <class T>
T* load(std::istream& in) {
boost::archive::xml_iarchive ia(in);
T* t;
ia & BOOST_SERIALIZATION_NVP(t);
return t;
}
and use of it:
vector<item>* v = load