I am trying to create a project in Unreal Engine 5.8.2. I have created an enum in C++ in its own header file:
enum class MATHGENIE_API EOperations
{
Addition,
Subtraction,
Multiplication,
Division
};
In the header file of another class I try to add a variable of this enum:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
EOperations Operations;
The Intellisense seems happy, but these two lines cause errors to appear when I rebuild and then my UE project is broken and I cannot recover it.
Some of the errors in the IDE is:
Severity Code Description Project File Line Suppression State Details
Error (active) E0842 template parameter “T” is not used in or cannot be deduced from the template argument list of class template “UEStaticAssertCompleteType_Private::TUEStaticAssertTypeCheckerBase<>” MathGenie D:\Program Files\Epic Games\UE_5.8\Engine\Source\Runtime\Core\Public\Misc\StaticAssertCompleteType.h 34