Archive for April 2007

Re: Writing exception-safe code
Dear Atul, In general I would agree with you that there is little one could do when the system goes out of memory. I don't disagree however that the best thing (more...)
Re: Writing exception-safe code
Dear Peter Actually out of memory will anyway terminate the program ( yes I am thinking about the **lazy memory allocation ** scheme use by many platforms ) ---------------------- man malloc --------------------------- By (more...)
Re: Writing exception-safe code
Dear all, I’m now thinking a little bit about exception safety, though I have to admit not too much, and had the following experience. Initially I was tempted to write a (more...)
Re: Writing exception-safe code
Dear mate Yes I got it.. So back to one of the things I love best ;-) look at source critically and try to improve it ;-) I saw the changes... So why not (more...)
Re: Writing exception-safe code
Hi Atul, The latest revision of the official branch is 105 and it does have StreamBuffer. You could checkout my dev branch. I fixed small exception safety issues in StreamBuffer and (more...)
Re: Writing exception-safe code
Dear Peter Where is this StreamBuffer? I am at revno 103.. And just built my ctags database but cannot find this one... Also did look at the doxygen generated tree here (more...)
Re: Writing exception-safe code
Hi Atul, I agree it is hard to achieve strong exception safety, especially in the standard template library where little assumptions can be made about the the template types. We have (more...)
Re: Writing exception-safe code
No mate it is not as simple as that.... I will write a detailed mail ( will read up on that a bit ) but strong exception safety is an (more...)
Re: Writing exception-safe code
Hi Atul, thanks for the follow-up! I think that strong exception safety is what we should be aiming at. It would be hard and would require training and lots of (more...)
Re: Writing exception-safe code
Dear mate Yes a very important topic indeed... I remember Herb Sutter classifying exception safety as 1. Basic exception safety This makes sure that when you throw, stack unwinding releases resources. 2. Strong exception (more...)

Next Page »