Attempting to use a post increment operator in a TMap or TSet iterator will fail to compile with error shown in callstack field. This is due to the post-increment operator not being overridden in Map.h. This is inconsistent with using a pre-increment operator which will compile/function as expected.
Regression:
No- same error message when attempting to use the code in 4.14.3 project
UPROPERTY(EditAnywhere, BlueprintReadWrite) TMap<int32,int32> TestMap;
for (auto i = TestMap.CreateConstIterator(); i; i++) {}
Result:
Compile will fail with error shown in callstack field
Expected:
Post increment is overridden and can be used/compiled
error C2676: binary '++': 'TMapBase<KeyType,ValueType,SetAllocator,KeyFuncs>::TConstIterator' does not define this operator or a conversion to a type acceptable to the predefined operator
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
How does TextureRenderTarget2D get TArray<uint8> type data?
What method is used to fill polygonal regions when drawing spline mesh at run time?
How does UMG set overlapping layouts?
How can i modify the param name in EQS node
Why does the REMOVE method of map container remove elements have memory leaks?
How to achieve HLSL Multiple Render Target in Material blueprints?
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.14.3, 4.15.1, 4.20 |
Created | Mar 21, 2017 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |