Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <boost/serialization/serialization.hpp>
- #include <boost/archive/xml_oarchive.hpp>
- #include <sstream>
- class my_archive
- : public boost::archive::xml_oarchive_impl<my_archive>
- {
- public:
- typedef boost::archive::xml_oarchive_impl<my_archive> base_type;
- my_archive( std::ostream &first )
- : base_type(first, 0)
- { }
- };
- int main(int argc, char *argv[])
- {
- {
- std::stringstream first_str;
- std::stringstream second_str;
- my_archive w(first_str);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement