templates
Israel Fernandez Cabrera
israel at seg.inf.cu
Wed Nov 28 15:32:07 GMT 2001
Yes, I'm sure it's somethig like this:
template <class T> void myclass<T>::insert(T){
/*Insert statments*/
}
But I tell you more!! there is a message by each function defined in myclass
I've used in the program.
S at lu2
Israel
El Mié 28 Nov 2001 10:20, escribió:
> On Wednesday 28 November 2001 16:11, you wrote:
> > Hi every body:
> >
> > I'm having a problem when I tried to use templates in KDevelop, I've
> > defined:
> >
> > template <class T> myclass{ /* ... */ }
> >
> > then I use:
> >
> > myclass <char*> newclass;
> > newclass.insert("a word");
> >
> > *where insert is a valid function in myclass
> > then the compiler give me the message bellow:
> >
> > undefined reference to myclass<char*>::insert(char*)
> >
> > Should I turn on "template" support just as "exception handling" support.
> > By the way I couldn't turn on exceptio handling support.
> > Please help me and explain me just as you explain a child.
> > S at lu2
> > Israel
>
> Are you sure that in your template you have a impementation of:
>
> void insert(T)
> {
> // Do something
> }
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list