Support for template inheritance.