mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
adding size_tag wrappers, XML output looking good
This commit is contained in:
15
sandbox.cpp
15
sandbox.cpp
@@ -28,12 +28,14 @@
|
||||
#include <cereal/cereal.hpp>
|
||||
#include <cereal/archives/binary.hpp>
|
||||
#include <cereal/archives/xml.hpp>
|
||||
|
||||
#include <cereal/types/string.hpp>
|
||||
#include <cereal/types/utility.hpp>
|
||||
#include <cereal/types/memory.hpp>
|
||||
#include <cereal/types/complex.hpp>
|
||||
#include <cereal/types/boost_variant.hpp>
|
||||
#include <cereal/types/base_class.hpp>
|
||||
#include <cereal/types/array.hpp>
|
||||
#include <cereal/types/vector.hpp>
|
||||
|
||||
#include <cxxabi.h>
|
||||
#include <sstream>
|
||||
@@ -309,7 +311,16 @@ int main()
|
||||
oar( 3.2f );
|
||||
oar( true );
|
||||
|
||||
std::array<int,5> arr = {1, 2, 3, 4, 5};
|
||||
std::array<int,5> arr = {{1, 2, 3, 4, 5}};
|
||||
oar( arr );
|
||||
|
||||
std::vector<std::string> vec = {"hey",
|
||||
"there",
|
||||
"buddy"};
|
||||
|
||||
Everything e;
|
||||
oar( cereal::make_nvp("EVERYTHING?!", e) );
|
||||
oar( vec );
|
||||
//int xxx[] = {-1, 95, 3};
|
||||
//oar.saveBinaryValue( xxx, sizeof(int)*3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user