Page MenuHomeFeedback Tracker

Enscript typename compile error for template types
Assigned, UrgentPublic

Description

ProvokeTypenameIssue(string); //no problem
ProvokeTypenameIssue(array<int>); //SYNTAX ERROR
...
void ProvokeTypenameIssue(typename type)
{
    Print(type);
}

Issue: Passing a templated type into a function that accepts typenames throws a syntax error.

Suspected cause: The enscript parser is most likely not set up to accept a template parameter for function invoke unless it's part of an object initialization with the leading "new" keyword. e.g new array<int>

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Please also forward this to the enfusion scripting team so this can be fixed for future titles.

Event Timeline

Arkensor created this task.Jun 16 2021, 9:54 AM
Geez changed the task status from New to Assigned.Jun 23 2021, 10:45 AM
komer added a subscriber: komer.Aug 19 2021, 12:17 AM