Boost logo

Boost Users :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2008-07-24 08:09:49


Bruno Lalande wrote:
> Hello,
>
> Doesn't the standard guaranty that the following would have the same
> effect in terms of order of destruction??
>
> {
> std::ostream os
> boost::archive::xml_oarchive ar(os)
> } // archive destructor writes endtag, THEN stream destructor closes stream

Yes, but for at least ostringstream you've lost your output. :-)

Jeff


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