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...)
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...)
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...)
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...)
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...)
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...)
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...)
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...)
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...)