Ticket #3839: ticket3839~demo.cpp
| File ticket3839~demo.cpp, 437 bytes (added by , 13 years ago) |
|---|
| Line | |
|---|---|
| 1 | //Purpose: |
| 2 | // Demonstrate bug mentioned here: |
| 3 | // |
| 4 | // https://svn.boost.org/trac/boost/ticket/3839 |
| 5 | // |
| 6 | #include <boost/iostreams/filter/newline.hpp> |
| 7 | #include <boost/iostreams/filtering_stream.hpp> |
| 8 | #include <boost/iostreams/compose.hpp> |
| 9 | #include <iostream> |
| 10 | |
| 11 | using namespace boost::iostreams; |
| 12 | |
| 13 | int main(void) |
| 14 | { |
| 15 | ; filtering_ostream mout |
| 16 | ; mout.push |
| 17 | ( compose |
| 18 | ( newline_filter(newline::posix) |
| 19 | , std::cout |
| 20 | ) |
| 21 | ) |
| 22 | ; return 0 |
| 23 | ; |
| 24 | } |
