On 08/09/2011 02:13 AM, Kinkie wrote:
>> ./cf_gen cf.data ../../src/cf.data.depend
>> error while opening input file 'cf.data': Unknown error: 0
>
> Now this puzzles me.
> ifstream fp.bad() reports badbits set, but errno is OK. On FreeBSD 6.4 only.
Perhaps the errno is reset by subsequent system calls? How close is your
bad() detection to the errno use?
BTW, I am surprised you use bad(). IIRC, we should use fail() or the !
operator in most cases.
Cheers,
Alex.
Received on Tue Aug 09 2011 - 18:56:31 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 10 2011 - 12:00:03 MDT