3 ms·
> isn't it a bit presumptious of the MyRAIIFile to make the decision to abort the entire program? I No. Closing an invalid file descriptor is a logic bug. It'
by quotemstr 7y ago
> isn't it a bit presumptious of the MyRAIIFile to make the decision to abort the entire program? I
No. Closing an invalid file descriptor is a logic bug. It's just as bad as an invalid pointer. When you notice one of these, you crash, because to continue means operating in some unknown and potentially dangerous state.