#inheritance of types
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
In the second version, it doesn't know the PlayerObjectData is a subclass of ObjectData, so it can't allow the mismatch return types of virtual methods
You can't forward declare a class along with its inheritance.
Best option is probably just to include struct.hpp inside object hpp
@abstract python thank a lot!