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.


Reply via email to