Hi,
I've encountered a problem concerning templates, perhaps someone knows how to fix this..
I have a template class "template<class T> class myclass"
this class has a memberfunction that is supposed to take as a parameter an instance of the class:
template<class T> ret myclass<T>::myfunc( myclass<T> )
so far so good.. but now for the part I don't get.. The functions parameter is to be the class with an arbitrary type .. not necessarily the type of the 'this' class...
something like this.. just to make you see what I wan't..
template<class T, class T1> ret myclass<T>::myfunc( myclass<T1> )
The above statement doesn't do the trick so how should I write..
- Anders