Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] empty xml output
From: Olivier Tournaire (olitour_at_[hidden])
Date: 2011-03-27 13:10:43


Thx François,

2011/3/27 François Mauger <mauger_at_[hidden]>

> >>> 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_at_[hidden] 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net