The alignas keyword is not usable with a USTRUCT. It can be used with a normal struct.
USTRUCT(BlueprintType) struct alignas(64) FMapCell { GENERATED_BODY() int32 TestVar; };
RESULT:
The build fails with the following error: error : Struct 'alignas' is missing a valid Unreal prefix, expecting 'Falignas'
EXPECTED:
The build completes successfully.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-65746 in the post.
2 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.19.2, 4.22, 4.20.3 |
Target Fix | 4.22 |
Created | Oct 24, 2018 |
---|---|
Resolved | Oct 29, 2018 |
Updated | Feb 12, 2019 |
5214 - projectgheist |