Ticket #9478: test.cpp
File test.cpp, 323 bytes (added by , 9 years ago) |
---|
Line | |
---|---|
1 | #include <boost/iostreams/filtering_streambuf.hpp> |
2 | #include <boost/iostreams/copy.hpp> |
3 | #include <boost/iostreams/device/file.hpp> |
4 | |
5 | int main() |
6 | { |
7 | using namespace boost::iostreams; |
8 | file_sink ofs("/dev/full"); |
9 | file_source ifs("/dev/zero"); |
10 | |
11 | filtering_streambuf<output> filters(ofs); |
12 | copy(ifs, filters); |
13 | } |