Hi,
I suggest you could try to change the Conformance mode property value to No: Configuration Properties -> C/C++ -> Language -> Conformance mode = No.
For more details about /permissive- (Standards conformance),I suggest you could refer to the Doc:/permissive- (Standards conformance)
And you could add the typename keyword to the declaration to avoid the error.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.