Board index » cppbuilder » Why do these constructors conflict?
David Pratt
![]() CBuilder Developer |
Why do these constructors conflict?2007-12-08 03:49:30 AM cppbuilder88 I am trying to override the constructor for this object, but keep getting this error: C++ Error] DBComboBox1.h(85): E2113 Virtual function '_fastcall TFieldProperty::TFieldProperty(const _di_IFormDesigner,int)' conflicts with base class 'TPropertyEditor' Here's the code: //descendant declaration: ... protected: __fastcall virtual TFieldProperty(const _di_IFormDesigner ADesigner, int APropCount); ... //base declaration: ... protected: __fastcall virtual TPropertyEditor(const _di_IFormDesigner ADesigner, int APropCount); ... not real sure why these would be conflicting, as the documentation says that this error occurs when the return type differs (obviously not, as they are constructors) or calling convention differs (don't think so, either). -- |