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 toAnswerHub just mention UE-64110 in the post.

0
Login to Vote

Backlogged
CreatedSep 17, 2018
UpdatedNov 10, 2019