Unreal Engine 4.7 Preview

[=getnamo;217077]
4.7 is giving one of my plugins issues with compilation.


\Intermediate\Build\Win64\Inc\Plugins\LeapMotion\LeapHand.generated.h(18): error C4099: 'FMatrix' : type name first seen using 'class' now seen using 'struct'
c:\program files\unreal engine\4.7\engine\source\runtime\core\public\math\Matrix.h(13) : see declaration of 'FMatrix'

It appears that in reflection system, forward declarations of FMatrix specify it as a structure when it is in fact a class.
[/]

Hi,

I haven’t got a repro for your particular case, but I’ve made what is likely going to be correct fix so that it should be available in a future release.

If you want to apply fix to your copy of source, you should simply be able to add NAME_Matrix to static array inside UStructProperty::GetCPPTypeForwardDeclaration() in Engine\Source\Runtime\CoreUObject\Private\UObject\PropertyStruct.cpp.

Hope helps!