Figured out how to serialize a shared_ptr<string>
authorDiane Trout <diane@caltech.edu>
Thu, 7 Sep 2006 00:34:30 +0000 (00:34 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 7 Sep 2006 00:34:30 +0000 (00:34 +0000)
commitda1e3c31d8fcf07269e06ba08a8e88e88332ca9b
treeeff5d8af5ac41ecfa085fc668c43e6d78860ff08
parenta1b5ecc1ff79d588ffd1b68bc443e695825291c5
Figured out how to serialize a shared_ptr<string>
My previous efforts at serializing a std::string stored as a shared_ptr
appear to have been foiled because the default shared_ptr serializaiton code
was expecting the class serializaiton code to be part of the class member
and alas std::string has out of class serialization.

So the simple solution was to make a subclass of std::string whose only
contribution was to define the serialization code. Also it turns out
there were some problems with the BOOST_SERIALIZATION_BASE_NVP macro
for the seq_string class, however when I expanded it manually, everything
seemed to work.
alg/sequence.cpp
alg/sequence.hpp
alg/test/test_sequence.cpp