D
daniel.w.gelder
struct A
{
};
template <typename T>
struct X
{
void Method();
};
void X<A>::Method()
{
}
struct B : A
{
};
void main()
{
X<B> myX;
myX.Method();
}
This compiles, but produces a linker error in Codewarrior because
X<B>::Method() is undefined. B is an A, so why can't it just use the
X<A> method? It's not even ambiguous. Is there a workaround..?
Thanks in advance.
Dan
{
};
template <typename T>
struct X
{
void Method();
};
void X<A>::Method()
{
}
struct B : A
{
};
void main()
{
X<B> myX;
myX.Method();
}
This compiles, but produces a linker error in Codewarrior because
X<B>::Method() is undefined. B is an A, so why can't it just use the
X<A> method? It's not even ambiguous. Is there a workaround..?
Thanks in advance.
Dan