It should be possible to let the compiler deduce the type for the template, no?