Almost-working c++ standalone example, just need to sort out some issues
with flexible arguments for templates