
27 Feb
2006
27 Feb
'06
5:31 p.m.
This looks pretty good to me. I would prefer to see the following: a) the stream/archive lines removed from the top b) and #inlcude <.. ublas.hpp> c) a name change to boost/sublas/serialization.hpp d) tests, etc. This way boost/ublas/serialization.hpp could be included in any program which uses ublas. Then ublas data could be serialized to any archive type. Robert Ramey Neal Becker wrote:
Here is the code I use to serialize ublas vector:
#include <sstream> #include <boost/archive/binary_oarchive.hpp> #include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/split_free.hpp> #include <boost/serialization/nvp.hpp> #include <boost/serialization/level.hpp> #include <boost/serialization/tracking.hpp>
...