BENB 100% Lux. | Alors j'ai un vieux compilo qui ne veux pas de la STL
C'est une bibliotheque qui utilise la STL
j'ai fait une adapatation de la STL et j'ai une erreur :
Code :
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: error: no match for call:
- "../STLAdaptators/VectorAdaptator.h", line 40: error detected during the instantiation of VectorAdaptator<Thread*>
- "./QueuedTask.h", line 43: is the site of the instantiation
- List<Thread*>* -> List<Thread*>::List<Thread*>(class VectorAdaptator<Thread*> ) (1735)
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: choice of List<Thread*>::List__pt__9_P6Thread()s:
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&, const List<Thread*>&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&, Thread*&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread();
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(const List<Thread*>&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(Thread*&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&, Thread*&);
- CC: "../STLAdaptators/VectorAdaptator.h", line 40: void List<Thread*>::List__pt__9_P6Thread(Thread*&, Thread*&, Thread*&, Thread*&);
- *** 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) |