URL: https://linuxfr.org/forums/programmation-c/posts/instantiated-from Title: instantiated from? Authors: stella Date: 2005年01月14日T13:56:49+01:00 Tags: Score: 0 salut a tous ,je suis en train d'ecrire un prog qui utilise un stack dynamique parametrique(class template) .lorsque j'essay d'utiliser la fonction push qui inserre un element le compilateur releve l'erreur: instantiated from `stack::push(int)' template <typename T> void stack::push(T value){ if(top==capacity){ T *loc_pointer=newcopy(pointer,capacity,capacity*2); capacity=capacity*2; top++; try{ loc_pointer[top++]=value; delete []pointer; pointer=loc_pointer; } catch(...){ delete []loc_pointer; capacity=capacity/2; top--; throw;} } else { top++; pointer[top++]=value; } } je voudrais savoir c'est quoi au juste cet erreur? en attendant une reponse je vous remerci