Ensure the stream is flushed

This commit is contained in:
jez_higgins 2003-09-17 11:09:20 +00:00
parent 5064d9c19c
commit 6b28b28af5

View file

@ -286,7 +286,10 @@ class oconvert_adaptor : private convert_adaptor_buffer<charT, traitsT, toCharT,
{
} // oconvert_adaptor
virtual ~oconvert_adaptor() { }
virtual ~oconvert_adaptor()
{
flush();
} // ~oconvert_adaptor
convert_bufadaptor<charT, traitsT>* rdbuf() const
{