TYPESYSTEM_HEADER_WITH_OVERRIDE and TYPESYSTEM_HEADER

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
andrecaldas
Posts: 300
Joined: Fri Jan 27, 2023 8:45 pm
Contact:

TYPESYSTEM_HEADER_WITH_OVERRIDE and TYPESYSTEM_HEADER

Post by andrecaldas »

In BaseClass.h, there are `#definition` for `TYPESYSTEM_HEADER_WITH_OVERRIDE` and `TYPESYSTEM_HEADER`. From what I understood of the meaning of the override keyword, since C++11 it should always be used, although optional.

If I am not getting anything wrong (again!), as long as the macro is only used for subclassing `BaseClass`, I see no need for having both macros. What am I missing (again)?
Post Reply