code samples for c++11
static template framework