Add default template argument in functions and inherting of constructors