A
Arne Claus
Hi.
I ran into the problem described here
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12, but the
solutions presented there only helped to fix a part of my problems.
I use the following construct
template <class T> class A {
public:
typedef smart_ptr<A<T> > aPtr;
virtual void myFunc(aPtr input)=0;
};
template <class T> class B : public A<T> {
public:
virtual void myFunc(aPtr input) { // <- compiler error
// ... do sth. ...
}
};
I tried A<T>::aPtr and using A<T>::aPtr but that doesn't work ...
I also *really* would like a template typedef outside class A, but the
only articles I found on that was one on MSN (I use gcc, so no help
here) and one from 2002 which states, that this would be a feature of
an upcoming C++ standard ... well ... if that standard exist my gcc
version does not seem to use it
Arne
I ran into the problem described here
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12, but the
solutions presented there only helped to fix a part of my problems.
I use the following construct
template <class T> class A {
public:
typedef smart_ptr<A<T> > aPtr;
virtual void myFunc(aPtr input)=0;
};
template <class T> class B : public A<T> {
public:
virtual void myFunc(aPtr input) { // <- compiler error
// ... do sth. ...
}
};
I tried A<T>::aPtr and using A<T>::aPtr but that doesn't work ...
I also *really* would like a template typedef outside class A, but the
only articles I found on that was one on MSN (I use gcc, so no help
here) and one from 2002 which states, that this would be a feature of
an upcoming C++ standard ... well ... if that standard exist my gcc
version does not seem to use it
Arne