Template dynamic casting… or better trust your time-proofed code
While writing my little API framework I run into a rather strange problem – my smart pointer code started to throw null pointer exception. It only did that when there was an attempt to assign a null pointer to it (that should never happen).
Polymorphism and its Destructor, or how to know, that virtual isn’t working
Recently, it took me to prototype some of my old libraries, which I wrote as a young coder. I wanted to see which of them are still usable, and in the meantime I was going to check a few things about C + +, which I never had time to test on my own. One […]