Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55722 - trunk/libs/signals2/doc
From: fmhess_at_[hidden]
Date: 2009-08-22 16:14:08


Author: fmhess
Date: 2009-08-22 16:14:08 EDT (Sat, 22 Aug 2009)
New Revision: 55722
URL: http://svn.boost.org/trac/boost/changeset/55722

Log:
mingw g++ 3.4 doesn't like it when you call close() on
a default-constructed ofstream.

Text files modified:
   trunk/libs/signals2/doc/snippet_extractor.cpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/signals2/doc/snippet_extractor.cpp
==============================================================================
--- trunk/libs/signals2/doc/snippet_extractor.cpp (original)
+++ trunk/libs/signals2/doc/snippet_extractor.cpp 2009-08-22 16:14:08 EDT (Sat, 22 Aug 2009)
@@ -65,6 +65,7 @@
             throw std::runtime_error("failed to obtain snippet name");
           }
           snippet_out_file.close();
+ snippet_out_file.clear();
           snippet_out_file.open(std::string(output_directory + "/" + snippet_name + ".xml").c_str());
           snippet_out_file << "<!-- Code snippet \"" << snippet_name <<
             "\" extracted from \"" << file_name << "\" by snippet_extractor.\n" <<


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk