Discussion: template and typedef
Afficher un message
Vieux 21/02/2008, 11h05   #1
Berardino la Torre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut template and typedef

Hi All,

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;
}

thx

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