Original Post
I have a problem, I will present it in the following code: The problem is that I get a compilation error in a place that helps me very little. Is there a way to trace where the compilation error originates? Because it has to check in some place where the foo was called, but where do I find this foo that is the source of this compilation error? I am using visual CPP 2003. Thanks in advance.
class A {
};
class B {
};
template <class T>
class Tempy {
public:
template <class M>
void foo(Tempy<M> src);
T * ptr;
};
template <T>
template <M>
void
Tempy<T>::foo(Tempy<M> src);
{
this->ptr = src.ptr; // <= Compilation error
}
void main()
{
Tempy a;
Tempy b;
a.foo(b); // <= Cant find this
}