Rajan wrote:
Can anybody share some of your thoughts in Member Function Templates
implementation.Can you also give some example on it
What exactly would you like to know? Here is an example:
class ConvertibleToAPointer {
// ...
public:
template<class T> operator T*();
};
Here is another example:
class CanWorkOnAPointer {
// ...
public:
template<class T> void workOn(T*);
};
As to thoughts, here is one: unfortunately some compilers don't support
those well, as I discovered today. But then again, they just have some
bad template support in general...
V