mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
C style arrays now exist in common.hpp, no longer need to do them for each archive type
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user