No one of the overloads can be applied to the function call ... MT bug?
Doerk Hilger:
It is not a bug. It comes from the new method hiding rules introduced in build 5200: https://www.mql5.com/en/forum/492297
Strengthened method hiding rules. When a derived class contains a method with the same name as one in the base class, the derived class version is now called by default. To explicitly call the base class method, a qualifier is now required.
That is why the AddItem overloads from CVSwitch are hidden in CVSButtonMenu.
Miguel Angel Vico Alba #:
I know, but this version of AddItem its explicitly overloaded and declared as public in CVSButtonMenu. Imo the error shouldnt be triggered.
It is not a bug. It comes from the new method hiding rules introduced in build 5200: https://www.mql5.com/en/forum/492297
Strengthened method hiding rules. When a derived class contains a method with the same name as one in the base class, the derived class version is now called by default. To explicitly call the base class method, a qualifier is now required.
That is why the AddItem overloads from CVSwitch are hidden in CVSButtonMenu.
double, string, string, color, color
Nothing wrong here but I get an error.
Build 5200



In Detail
where CVSButtonMenu inherits from CVSwitch, while definition in CVSButtonMenu is
and in CVSwitch it is