It says : error C2784: 'class mValArray<T> __cdecl acos(const class mValArray<T> &)' : could not deduce template argument for 'const class mValArray<L> &' from 'int'
When trying the code :
1 2 3 4 5
int val[] = {0.0, 0.25, 0.5, 0.75, 1.0};
mValArray<int> foo (val, 5);
mValArray<int> bar = abs (foo); // fine
mValArray<int> bar2 = acos (foo); // error
@TheIdeasMan
Please do not derail someone else's thread. If these are not clear and sufficent enough, you can ask for more. Please don't post off-topic posts that do not contribute to solving the problem.