CPP: add examples for the Curiously Recurring Template Pattern