I'm trying to use templates in my program, however compiler produces error 'template functions overloading is not supported yet'. My code is following:
void Create(T arr)
I have metatrader version 4.00 build 646. As I have understood from documntation this version should support templates.
Hm, I just copied this code from the help and it compiled without problem:
T ArrayMax(T &arr)
Mt4, build 646, MetaEditor v.934
I did not run that code though.
Add "&" in front of "arr" in the function specification. Arrays can be passed by reference only. Maybe that is the reason for compiler error.
To add comments, please log in or register