I often see people use handcrafted loops or write weird workarounds for stuff the standard library has already taken care of. This does not only apply for standard library features but also for any other library, like Boost, other third party libraries and the libraries the code belongs to.
It has been just under a month now since I started this blog. I must say, I am overwhelmed by the responses so far. I would have expected the first few […]
I am going to tell you a story about an issue that brought me a rather painful debugging session, and the lessons that can be learned from it. A few […]
Sometimes when I factor out a function, I see a more general algorithm hidden in that function. And then I get carried away generalizing it more and more.
In C++ there are two ways of type conversions: implicit and explicit type conversions. The latter are called type casts and they are what this post is about.
Among C++ developers there often appears to be a misconception about what it means to deal with code that can throw exceptions. The misconception is that the possibility of exceptions […]
In my last blog post I have told you about the basics of operator overloading, about the when and how, and which operators can be overloaded. In this post I […]
Since I do not have much time this week I will translate and update the first of a small series of articles I have written for a German C++ forum […]
In a few occasions I have seen functions that allocate certain local variables on the heap instead of using variables with automatic storage. In this post I explain what you should do with those variables.
So this is it. I installed a blogging software and this is the first post. I have been thinking of starting a blog for some time now, but I never […]