A quick intro to extern templates The Problem One annoying thing with using C++ templates is that they get instantiated multiple times if used with the same template arguments in different compilation units. The compiler happily instantiates the template in every compilation unit, only for the the linker to throw
Introducing ref-qualifiers for member functions Intro Today we will have a look at a nice feature of C++11. It is called ref-qualifiers for non-static member functions. This feature is there to support value semantics in C++. Hmmh, what does that mean? We will see ... Motivating example Lets say,
Using enum classes as type-safe bitmasks This write-up is (to the largest part) a reiteration of a blog post by Anthony Williams. Intro In C++, bitmasks are often represented by either preprocessor defines #define Readable 0x4 #define Writeable 0x2 #define Executable 0x1 unsigned permissions = Readable | Executable; integer constants static const