Whats the difference between OVERRIDE macro and override keyword?

Hi

I just updated to UE4.3. I tried building a 4.2.1 project after updating the .uproject file, and I’ve got the error;

warning C4996: OVERRIDE macro is deprecated. Please use override keyword instead.

The line it’s got a problem with is;

virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) OVERRIDE;

Which seems very standard. Any ideas what the problem is? thanks!!!

Hi,

OVERRIDE keyword was a macro we used to simulate override keyword when using compilers that did not support it (where it would be defined as an empty macro, otherwise as the keyword). Since all platforms supported by UE4, also support override keyword, we no longer use the old macro and have deprecated it.

For anyone that might need the help.

4.2: virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) OVERRIDE;

4.3: virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;

Great, thankyou!

Thanks !

Thanks, this obviously should have been included in the first answer.