Page MenuHomeFeedback Tracker

Cannot inherit templates
Assigned, NormalPublic

Description

In Enforce Script, there is no possibility to inhert from a templated class without specifying the template. The only workaround currently is to explicitly implement all possible types which are used. But this procedure obviously contradicts the basic idea of templates. If one tries to keep the template in the child class, the compiler raises an error.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Try to compile the following code:

test_base<Class T> {}
test_1<Class T> : test_base<T> {}

It raises the error Unknown type 'T'.

Event Timeline

Geez changed the task status from New to Assigned.Jun 27 2022, 7:51 PM