New MetaTrader 5 Platform Build 2280 - page 5

 

Is it a bug?

Compile Error when use template in Class inheritance

template<typename T>
class Foo{};

template<typename T>
class Bar:public Foo< T >{};

void OnStart()
{
   Bar<int> b;
   Bar<Foo<int>> b2;
   Bar<const Foo<int>* > b3;
   Foo<const void *> f; // this is ok
   Bar< const void* > b4; // but this is not ok
   // here is the problem: when set the tmplate type in Bar to "const void *", some compile error
   // 'T' - unexpected token
   // '<' - wrong template parameters count
}
Compile Error when use template in Class inheritance
Compile Error when use template in Class inheritance
  • 2020.02.19
  • www.mql5.com
Need help. When I migrate my mql4 lib to mql5, but come to a problem I can't solve. here is the code that recreate the problem...
 

Hi,


I have downloaded beta-release 2323;

When I start compiling my EA, I'm receiving errors, that did not existed before.

Probably a bug in the compiler; when I switch back to a previous release (of the editor), it's OK again.

Regards,

Danny

 

there seems to be a computation error as shown in attachment.

Where would this error originate please?

I am using 2280  version 5


Thank you

Files:
vlad.jpg  157 kb
 
My error, I had pips instead ticked and that caused the distorted results
 

Hi,

I've downloaded and testen beta build 2326.

I've still seen a problem with the editor giving a compilation error.

When I switch back to build 2280, it's ok again.

Regards,


Danny

Reason: