Thank you for your message.
Bug was fixed, wait for new build.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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