When you have a non-inlined ufunction, UHT fails to parse the restrict keyword in its parameter list.
Note: The following compiles (notice that the only change is the use of the FORCEINLINE keyword):
FORCEINLINE UFUNCTION() void TestFunction(const FVector& RESTRICT Location1, const FVector& RESTRICT Location2){}
The following would also compile (notice the removal the UFUNCTION() specifier):
void TestFunction(const FVector& RESTRICT Location1, const FVector& RESTRICT Location2) {}
UFUNCTION() void TestFunction(const FVector& RESTRICT Location1, const FVector& RESTRICT Location2);
Result: error : Missing ')' in parameter list
Expected: No error expected
How does TextureRenderTarget2D get TArray<uint8> type data?
UMG RichText not appear image when packaged
Why does the REMOVE method of map container remove elements have memory leaks?
How to delete some elements correctly when deleting an array loop?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
What is the difference between Camera and CineCamera?
How to convert the datasmith scene file to BluePrint. Create animations in BluePrint.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-76843 in the post.
0 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.21, 4.22, 4.23 |
Created | Jul 2, 2019 |
---|---|
Resolved | Aug 27, 2021 |
Updated | Aug 27, 2021 |