Description

UnrealHeaderTool cannot parse certain declarations with a trailing `const` instead of a leading `const`.

Steps to Reproduce
  • Load up the QAGame project.
  • Add the following to the bottom of UQATestActor:
UPROPERTY()
TSoftObjectPtr<const UObject> MyPtr; // Fine
 
UPROPERTY()
TSoftObjectPtr<UObject const> MyPtr; // UHT Error: Missing '>' in TSoftObjectPtr
 
UPROPERTY()
TArray<TSoftObjectPtr<UObject> const> MySoftObjects; // UHT Error: Missing '>' in TSoftObjectPtr
  • Compile.

 

Expected: code should compile.

Actual: code gives the errors mentioned above.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-64110 in the post.

0
Login to Vote

Won't Fix
CreatedSep 17, 2018
ResolvedAug 18, 2021
UpdatedAug 18, 2021