[Boost-users] boost::iostream - returning EOF in device::write and set failbit