Ticket #9478: test.cpp

File test.cpp, 323 bytes (added by bugs@…, 9 years ago)

more minimal reproducer

Line 
1#include <boost/iostreams/filtering_streambuf.hpp>
2#include <boost/iostreams/copy.hpp>
3#include <boost/iostreams/device/file.hpp>
4
5int 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}