template question
From: AngleWyrm (no_spam_anglewyrm_at_hotmail.com)
Date: 05/25/04
- Next message: Rick Huby: "Java and MySQL SQL String conflicts"
- Previous message: Edward G. Nilges: "Re: Simple Parser"
- Next in thread: Jeff Schwab: "Re: template question"
- Reply: Jeff Schwab: "Re: template question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 May 2004 22:31:29 GMT
If I have a templated class:
template< class T, class C = list<T> >
class something{
public:
C::iterator memberFunction();
};
How do I write memberFunction code OUTSIDE the class?
I know this is WRONG:
something<T>::iterator something<T>::memberFunction(){}
- Next message: Rick Huby: "Java and MySQL SQL String conflicts"
- Previous message: Edward G. Nilges: "Re: Simple Parser"
- Next in thread: Jeff Schwab: "Re: template question"
- Reply: Jeff Schwab: "Re: template question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]