I have written a Vector<T> template class, and have declared one as a double and another as an int:
Vector<double> v1(10,1.0);
Vector<int> v4;
Now I need to perform the cast operation:
v4 = (Vector<int>) v1;
Do I need to overload some operator or someting?
Any help will be greatly appreciated!
Vector<double> v1(10,1.0);
Vector<int> v4;
Now I need to perform the cast operation:
v4 = (Vector<int>) v1;
Do I need to overload some operator or someting?
Any help will be greatly appreciated!