mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
Working on prologue/epilogue for xml
This commit is contained in:
@@ -295,14 +295,18 @@ int main()
|
||||
|
||||
assert(e_in == e_out);
|
||||
|
||||
auto x = cereal::make_nvp( "a", cereal::make_nvp("b", 5) );
|
||||
|
||||
{
|
||||
//std::stringstream os;
|
||||
cereal::XMLOutputArchive oar( std::cout );
|
||||
oar( cereal::make_nvp("hello", 5 ) );
|
||||
std::string bla("bla");
|
||||
oar( bla );
|
||||
oar( 5 );
|
||||
oar( 3.3 );
|
||||
oar( 3.2f );
|
||||
oar( true );
|
||||
//int xxx[] = {-1, 95, 3};
|
||||
//oar.saveBinaryValue( xxx, sizeof(int)*3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user