Explicitly call xml_buffered_writer::flush()
Explicitly call xml_buffered_writer::flush()

If xml_writer::write throws an exception while being called from flush(), the
exception is thrown from destructor. Clang in C++11 mode calls std::terminate
in this case.

zeux/pugixml,zeux/pugixml,zeux/pugixml,zeux/pugixml