Thx François,
2011/3/27 François Mauger
Olivier Tournaire a écrit :
I suspect you have some other bits in your main that blanks the test_parameters.xml file...
Yes, probably. I tried my code removing all the other code in the main, and it works. What can cause this?
Typically a second call to {{{std::ofstream ofs
("test_parameters.xml");}}} from a independant code block invoked after your serialization bits.
I never seen that. I somewhere else in my code creates ofstream but why that it clear my test_parameters.xml ofs? Putting the serialization code in the main but in a dedicated scope does the trick ... Really do not understand. Can someone explain? Regards, Olivier
frc
-- François Mauger Groupe "Interactions Fondamentales et Nature du Neutrino" NEMO-3/SuperNEMO Collaboration LPC Caen-CNRS/IN2P3-UCBN-ENSICAEN Département de Physique -- Université de Caen Basse-Normandie Adresse/address: Laboratoire de Physique Corpusculaire de Caen (UMR 6534) ENSICAEN 6, Boulevard du Marechal Juin 14050 CAEN Cedex FRANCE Courriel/e-mail: mauger@lpccaen.in2p3.fr Tél./phone: 02 31 45 25 12 / (+33) 2 31 45 25 12 Fax: 02 31 45 25 49 / (+33) 2 31 45 25 49
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users