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

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

Marsh Posté le 24-04-2001 à 15:21:17    

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)

Reply

Marsh Posté le 24-04-2001 à 15:21:17   

Reply

Marsh Posté le 24-04-2001 à 16:37:54    

Up...

Reply

Marsh Posté le 24-04-2001 à 18:29:56    

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

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed