What’s the advantage of using forward class declarations over using #include “TankBarrel.h”…
It seems I must be missing something, because while
UTankBarrel *Barrel;
works, in the CPP file,
Barrel->Elevate(0.0f);
returns the error message:
Pointer to incomplete class not allowed.
If I remove the forward declaration and simply use
#include "TankBarrel.h"
then it compiles perfectly.