Showing the changes to src/boost-test.cpp (1 of 2 files). Show all
Unified · Split
| @@ -0,0 +1,17 @@ | ||
| 1 | +/* This file is part of mingw-cross-env. */ | |
| 2 | +/* See doc/index.html for further information. */ | |
| 3 | + | |
| 4 | +#include <iostream> | |
| 5 | +#include <boost/archive/xml_oarchive.hpp> | |
| 6 | + | |
| 7 | +int main(int argc, char *argv[]) | |
| 8 | +{ | |
| 9 | + (void)argc; | |
| 10 | + (void)argv; | |
| 11 | + | |
| 12 | + boost::archive::xml_oarchive oa(std::cout); | |
| 13 | + std::string s = "\n\n Hello, World!\n\n"; | |
| 14 | + oa << BOOST_SERIALIZATION_NVP(s); | |
| 15 | + | |
| 16 | + return 0; | |
| 17 | +} | |