Re: template and typedef
Berardino la Torre wrote:
> is it possible to do something like this ? :
>
> template <typename Base>
> class Object : public Base::Interface {
> };
>
> class IA{
> virtual void print()=0;
> };
>
> class A : public Object<A>{
> public:
> typedef IA A::Interface;
> void print(){
> }
> };
>
>
> int main(){
>
> return 0;
> }
What is the intent here? I have hard time figuring out what you
are trying to accomplish. Perhaps if you would show the _use_ for
class A or class IA...
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
|