
30 Jan
2006
30 Jan
'06
11:37 a.m.
Hallo, how can I set failbit or badbit in boost::iostream::stream if I detect some error in boost::iostream::device::read/write? Is it possible without throwing exceptions? Example: in the write method of a device which models a socket connection an EPIPE error (peer has closed socket) was detected. How can I set the boost::iostream::stream (which uses the device) to be not useable? Regards, Oliver