Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2166 connectés 

  FORUM HardWare.fr
  Programmation

  [C++ / template] Pb d'instanciation de template

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[C++ / template] Pb d'instanciation de template

n°26980
BENB
100% Lux.
Posté le 24-04-2001 à 15:21:17  profilanswer
 

Alors j'ai un vieux compilo qui ne veux pas de la STL
C'est une bibliotheque qui utilise la STL :D
j'ai fait une adapatation de la STL et j'ai une erreur :

Code :
  1. CC: "../STLAdaptators/VectorAdaptator.h", line 40: error: no match for call:
  2. "../STLAdaptators/VectorAdaptator.h", line 40:   error detected during the instantiation of VectorAdaptator<Thread*>
  3. "./QueuedTask.h", line 43:       is the site of the instantiation
  4. List<Thread*>* -> List<Thread*>::List<Thread*>(class VectorAdaptator<Thread*> ) (1735)
  5. CC: "../STLAdaptators/VectorAdaptator.h", line 40: choice of List<Thread*>::List__pt__9_P6Thread()s:
  6. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&, const List<Thread*>&);
  7. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&, Thread*&);
  8. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread();
  9. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&);
  10. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(Thread*&);
  11. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&);
  12. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&, Thread*&);
  13. CC: "../STLAdaptators/VectorAdaptator.h", line 40:      void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&, Thread*&, Thread*&);
  14. *** Error exit code 1


 
ce que je veux c'est un vector<Thread *> dans une classe QueuedTask
List c'est une classe d'une bib de mon compilo dont je me sert pour mon adaptation :
template<class T>
VectorAdaptator
{
 List<T> Hearth
};
bon dans VectorAdaptator il y a aussi des methodes style STL
 
(oui je suis brouillonne, mais bon j'ai pas l'habitude de poser les questions)

mood
Publicité
Posté le 24-04-2001 à 15:21:17  profilanswer
 

n°27062
BENB
100% Lux.
Posté le 24-04-2001 à 16:37:54  profilanswer
 

Up...

n°27142
BENB
100% Lux.
Posté le 24-04-2001 à 18:29:56  profilanswer
 

Merci pour toutes vos reponses les mecs...
Bon vous fatiguez surtout plus on a trouve, et c'etait sacrement tordu... (salaud de compilo)...


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [C++ / template] Pb d'instanciation de template

 

Sujets relatifs
Plus de sujets relatifs à : [C++ / template] Pb d'instanciation de template


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)