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 use something like QByteArray? This will be still work even if someone tomorrow puts in a premature return. This will also work if the ctor throws an exception
I am still looking at the code. I think reading and writing stream buffers problem has been solved by the std::basic_streambuf and other things in the library…

So we can

Try to reuse that one if possible

Else try to base our design on theirs ;-)

Stealing is a good in thing for developing software …

I find that idea of using std stuff very appealing ;-)

– cheerio atul

Would you like to post a relpy?


This post is a reply to:
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...)

Follow-ups:
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...)