Enhance type safely using Opaque Typedefs aka phantom types

Its seems every year (see references at the bottom) someone writes about having strong typedefs in C++. Hey, it’s end of February and nobody did it for 2018 yet!? The idea is simple (or so it seems). Suppose you would like to distinguish variables that have the same basic type and have the compiler enforce Read more about Enhance type safely using Opaque Typedefs aka phantom types[…]

Posted in C++

Win32 library on Windows 10 Creators edition using Outputdebugstring

At a readers request, I wrote this post describing a ‘Windows 10 Creators Update’ quirk/feature. the symptom: While testing Debugview++ on Windows Windows 10 1703 Creators Update Build 15063.413 (the latest version at the time) one of my users found that the application hangs at startup for about 20 seconds, before actually continuing the startup. Read more about Win32 library on Windows 10 Creators edition using Outputdebugstring[…]

Posted in C++

Personal preferences for the use of pointers and references

A blog post about pointers and references? What kind of newbie am I? Well, the kind with 20+ years of programming experience that is not afraid to admit his ignorance, apparently? on the other hand; maybe its not that easy? maybe I didn’t paying that much attention when it was explained to me? maybe things Read more about Personal preferences for the use of pointers and references[…]

Posted in C++

C++, where initializing variables is the topic of debate, by experts.

Let me first say: I did not come up with the title myself, but have to credit it to cpplang @ slack.com. Unfortunately I forgot who actually said it. So what is so interesting about initializing a variable you might ask? Lets take a simple struct: struct Foo { int x; int y; }; And Read more about C++, where initializing variables is the topic of debate, by experts.[…]

Posted in C++