Discussion: template and typedef
Afficher un message
Vieux 21/02/2008, 15h43   #2
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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


  Réponse avec citation
 
Page generated in 0,04251 seconds with 9 queries