#include #include #include #include int main() { std::ostringstream out_buffer; out_buffer << 1 << " " << 2 << " " << 3; assert(out_buffer.str() == "1 2 3"); std::istringstream in_buffer(out_buffer.str()); boost::input_iterator_test(std::istream_iterator(in_buffer), 1, 2); }