Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all,
Here is a piece of code, generating a 'code generation error' compilation error.
class A
{
public:
virtual int doSomething(
const int& elementsCount,
double& arrData[]
)
{
return 0;
}
};
A* g_pA;
int OnInit()
{
g_pA = new A();
int elementsCount = 1;
double arrTemp[ 1 ];
g_pA.doSomething(
elementsCount,
arrTemp
);
return(0);
}
void OnDeinit(const int reason)
{
delete g_pA;
}
void OnTick()
{
}
Does anybody have any clue what is the compiler's problem?
Thanks in advance,
Maxim