
Hi, I'm new at boost, but I don't know how to use the http://beta.boost.org/doc/libs/1_43_0/boost/iostreams/device/null.hpp device. I must use the boost::iostreams::copy to copy a stream to the /dev/ null, but I don't know to declare my out null-output stream. Can anyone help me to declare the stream? Thanks Phil

On 2010-06-12 23:16:49 +0200, Kraus Philipp said:
Hi,
I'm new at boost, but I don't know how to use the http://beta.boost.org/doc/libs/1_43_0/boost/iostreams/device/null.hpp device. I must use the boost::iostreams::copy to copy a stream to the /dev/ null, but I don't know to declare my out null-output stream. Can anyone help me to declare the stream?
Okay I've found my error: I had wrote bio::stream_buffer< bio::basic_null_sink<char> > l_out and it must be bio::basic_null_sink<char> l_out;
participants (2)
-
Kraus Philipp
-
Philipp Kraus