
26 Mar
2007
26 Mar
'07
5:32 a.m.
Howard Hinnant wrote: [...]
got a problem there. Indeed maybe even a bigger one: fclose is allowed to throw! :-\
That just means that you'd either have to deal with it (disable cancel at places where you don't want it to throw, or catch and self-re-cancel, or whatever) or just declare your code cancel unsafe (your clients will either disable cancel or simply won't cancel at all) and be done with it. Given that the later is the current state of affairs in today's (p)thread/C++ world, what the heck is the problem? regards, alexander.