Error: an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_trivially_destructible'
I'm getting an error I don't understand.
I have a struct called FLilaParameter, which I have defined in a file called LilaStructsAndEnums.h:
In another class called LilaBrushDynamic, I want to have an array of these structs. Here is the code for that class:
When I try to build, I get the following error:
Error C2139 'FLilaParameter': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_trivially_destructible' C:\Program Files (x86)\Epic Games\UE_4.17\Engine\Source\Runtime\Core\Public\Templates\IsTriviallyDestructible.h 18
What's going on here? Why can't I have an array of this struct that has been defined?
asked Sep 20 '17 at 07:12 PM in C++ Programming
Include LilaStructsAndEnums.h file instead of declaing it in LilaBrushDynamic line 9
answered Jan 25 '18 at 08:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here