Allow virtual function for DEFINE_FIELD #117
Labels
category: enhancement
proposed enhancements or new features
priority: low
alternative solution already working and/or relevant to only specific user(s)
See discussion at #85 (comment)
Currently
DEFINE_FIELD
inRegisteredType.h
creates a templated member function. However, when "redefining" a field in a child class B withDEFINE_FIELD
the existing member function that was inherited from the base class A is being "hidden" instead of "override". This is fine if we are using a pointer of type B. However, if we cast the pointer to the base class A, then the definition of the function from A is being used since the member function is not virtual. However, C++ does not allow virtual templated functions.Here the corresponding note in the docs (which should be updated when this issue is being addressed):
aqnwb/docs/pages/devdocs/registered_types.dox
Lines 82 to 87 in 7b88122
The text was updated successfully, but these errors were encountered: