C style arrays now exist in common.hpp, no longer need to do them for each archive type

This commit is contained in:
Shane Grant
2013-07-06 13:49:04 -07:00
parent 219558cbd2
commit 5017efef4e
4 changed files with 41 additions and 19 deletions

View File

@@ -315,6 +315,15 @@ int main()
assert(e_in == e_out);
{
cereal::BinaryOutputArchive archive(std::cout);
int xxx[] = {-1, 95, 3};
archive( xxx );
cereal::XMLOutputArchive archive2(std::cout);
archive2( xxx );
}
{
std::ofstream os("out.xml");
cereal::XMLOutputArchive oar( os );