What about that workaround to use proper c++ generics / avoid generics from that blog post?