GetLifetimeReplicatedProps in comment causes compile error
If I add
to header file of any class that implements this function in .cpp file I get compilation error. It looks like override for GetLifetimeReplicatedProps doesn't get declared in GENERATED_BODY.
asked Aug 10 '15 at 11:02 PM in Bug Reports
I know that this thread is pretty old, but OP is absolutely correct. If you have the function "GetLifetimeReplicatedProps" in your header file as a comment, such as
answered Jan 10 '19 at 11:47 PM
This bug still exists on Engine 4.21.2.. just verified
answered Feb 06 '19 at 03:08 AM
Using a function in the source file who's declaration is commented out in the header file will cause compile errors since the compiler doesn't know where the declaration of the function is. Additionally, after looking at the function declaration inside Actor.h, that function is not declared virtual so it cannot be overridden in the child class. If you are using a source built version of the engine then this can be edited in the source code, otherwise you will only be able to call the function from your class without changing its functionality.
answered Aug 11 '15 at 07:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here