I am following a tutorial on Ability System on UDemy. The instructor is using is using UE4.20 I am using using UE 5.1 I know I should be using the same editor but I am not. When I compile my code I get an error message C2446: ‘==’ : no conversion from ‘T *’ to FProperty *’ with [ T=UProperty ] and this message note: Types pointed to are unrealted; conversion requires reinterpret_cast. C-style cast or parenthesized function-style cast. I just started my C++ and UE adventure in January and haven’t come across the get so I am stumped. I have also attached pictures of the code and error.
[type or paste code here](https://1drv.ms/i/s!AjmNDGN_deFZhPUbI5IeIcbde8CWbw?e=Diir63)
[type or paste code here](https://1drv.ms/i/s!AjmNDGN_deFZhPUaHQSxoCq0vmUcmQ?e=Rj8qJR)
As the images you posted were only linked, I am posting the relevant one here for anyone else who has a similar issue to be able to get the context of your question later. (If ever the image link were to not work anymore)
Change the template type T to be a FProperty instead and everything should work. The type UProperty (NOT to be confused with the macro UPROPERTY(…)) was deprecated in favour of the type FProperty in one of the past Engine versions.
I just want to chime in and say the way its done here is not the recommended way, you are best to utilize the special macro’s that Epic have provided us. I will show an example here: