Support for template inheritance