Motivation

My motivation to start this blog mainly was to have a memory hook for myself.
I'm experiencing to investigate repeatedly on the same problems multiple times in slightly different contexts, when these appear in e.g. new project setup cycles.
May be my markers might also be helpful for other software developers ...

2/11/2014

Conditional type selection using C++ template specializations

One of the very basic techniques of C++ meta-programming is to provide simple selector classes that provide to refer to a type from a (public) typedef member.

The basic pattern for type selections based on a condition applied to the template parameters passed, or even independently looks like the following code demonstrates:



A compiled and running example of the above code can be found here.