szczudlo6:
Hi All,
I try to find solutions for my below problem. In the case I would like to define type in a different situation.
Like you see we have 2 voids and one function int. Diff type arrays are pass to func. I know it is not working for string arr now but I just wondering how can I fix that not duplicate functions.
Tried to #ifdef but Im not sure it is possible to do that method.
Im looking for var type like in c#.
Please help.
Please see example.
template<typename T> int CheckArray(T &arr[]) { return ArraySize(arr); }

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,
I try to find solutions for my below problem. In the case I would like to define type in a different situation.
Like you see we have 2 voids and one function int. Diff type arrays are pass to func. I know it is not working for string arr now but I just wondering how can I fix that not duplicate functions.
Tried to #ifdef but Im not sure it is possible to do that method.
Im looking for var type like in c#.
Please help.
Please see example.