[generated.h] Forward declaring Struct instead of Class FBox2D
Hello. I'm having an interesting trouble using FBox2D.
When I build my c++ project with FBox2D, the generated header forward declares "struct FBox2D" instead of class, and then the compiler outputs error C4099 (meaning the forward declaration is wrong). I have to change it myself in the generated.h to make it work, do you know what might be causing this? Thank you.
asked Nov 09 '15 at 10:29 AM in C++ Programming
This was a bug which was fixed and should be available in the 4.10 release. In the meantime you can fix it in your own code by simply changing the definition of FBox2D in Engine/Source/Runtime/Core/Public/Math/Box2D.h from class to struct.
Hope this helps,
answered Nov 10 '15 at 12:16 PM
Steve Robb STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here