Ticket #5174: code_converter_patch

File code_converter_patch, 863 bytes (added by beder@…, 11 years ago)

Patch to the trunk for flushing the code_converter

Line 
1Index: boost/iostreams/code_converter.hpp
2===================================================================
3--- boost/iostreams/code_converter.hpp (revision 77454)
4+++ boost/iostreams/code_converter.hpp (working copy)
5@@ -254,7 +254,7 @@
6 public:
7 typedef intern_type char_type;
8 struct category
9- : impl_type::mode, device_tag, closable_tag, localizable_tag
10+ : impl_type::mode, device_tag, closable_tag, localizable_tag, flushable_tag
11 { };
12 BOOST_STATIC_ASSERT((
13 is_same<
14@@ -287,6 +287,7 @@
15 std::streamsize read(char_type*, std::streamsize);
16 std::streamsize write(const char_type*, std::streamsize);
17 void imbue(const std::locale& loc) { impl().cvt_.imbue(loc); }
18+ bool flush() { return out().flush(dev()); }
19
20 // Direct device access.
21