std::ostringstream oss;
boost::archive::text_oarchive oa(oss);
I add variable number of content to this oa, like this
oa & int1;
oa &int2;
--------------------> insert number of matrices here
oa & matrix1;
..//do some processing
oa & matrix2;
...//do some more
....
oa & matrixn;
matrix ref - http://robot.kaist.ac.kr/haptics/chai3d-2.0.0_Doc/resources/html/structc_matrix3d.html
Now at the end when I am finished, I want to insert the number of matrices I added to this archive before I started adding matrices before udp sending it. But I also know how many matrices I added, after I added them to the stream
How should I do this?