Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Structure??? Pin
MayankT1-Sep-06 2:00
MayankT1-Sep-06 2:00 
GeneralRe: Structure??? Pin
toxcct1-Sep-06 2:01
toxcct1-Sep-06 2:01 
GeneralRe: Structure??? Pin
MayankT1-Sep-06 2:08
MayankT1-Sep-06 2:08 
GeneralRe: Structure??? Pin
toxcct1-Sep-06 2:20
toxcct1-Sep-06 2:20 
GeneralRe: Structure??? Pin
toxcct1-Sep-06 1:49
toxcct1-Sep-06 1:49 
QuestionRe: Structure??? Pin
prasad_som31-Aug-06 22:56
prasad_som31-Aug-06 22:56 
GeneralRe: Structure??? Pin
Programm3r31-Aug-06 23:04
Programm3r31-Aug-06 23:04 
QuestionTemplate classes Pin
Waldermort31-Aug-06 22:33
Waldermort31-Aug-06 22:33 
I have defined a template class in a header file like so:
template <class _T> class TCollection {
public:
	TCollection();
	~TCollection();

Then try to declare the members in the cpp file like so:
TCollection::TCollection() : pData(0) , pCount(0)
{
}

TCollection::~TCollection()
{
	clear();
}

Yet I am getting a compiler error
'TCollection' : use of class template requires template argument list
Obviously it cannot be treated like a normal class, so what is the correct way of declaring the members?
AnswerRe: Template classes Pin
toxcct31-Aug-06 22:40
toxcct31-Aug-06 22:40 
GeneralRe: Template classes Pin
Waldermort31-Aug-06 22:45
Waldermort31-Aug-06 22:45 
GeneralRe: Template classes Pin
Waldermort31-Aug-06 22:53
Waldermort31-Aug-06 22:53 
GeneralRe: Template classes Pin
toxcct31-Aug-06 22:56
toxcct31-Aug-06 22:56 
GeneralRe: Template classes Pin
Waldermort31-Aug-06 23:06
Waldermort31-Aug-06 23:06 
GeneralRe: Template classes Pin
toxcct31-Aug-06 23:08
toxcct31-Aug-06 23:08 
GeneralRe: Template classes Pin
Waldermort31-Aug-06 23:15
Waldermort31-Aug-06 23:15 
GeneralRe: Template classes Pin
toxcct31-Aug-06 23:19
toxcct31-Aug-06 23:19 
GeneralRe: Template classes Pin
Waldermort31-Aug-06 23:27
Waldermort31-Aug-06 23:27 
GeneralRe: Template classes Pin
Zac Howland1-Sep-06 4:18
Zac Howland1-Sep-06 4:18 
GeneralRe: Template classes Pin
toxcct1-Sep-06 4:47
toxcct1-Sep-06 4:47 
AnswerRe: Template classes Pin
prasad_som31-Aug-06 22:44
prasad_som31-Aug-06 22:44 
AnswerRe: Template classes Pin
Anonymuos1-Sep-06 0:30
Anonymuos1-Sep-06 0:30 
GeneralRe: Template classes Pin
Waldermort1-Sep-06 1:44
Waldermort1-Sep-06 1:44 
AnswerRe: Template classes Pin
MayankT1-Sep-06 0:45
MayankT1-Sep-06 0:45 
GeneralRe: Template classes Pin
toxcct1-Sep-06 1:51
toxcct1-Sep-06 1:51 
AnswerRe: Template classes Pin
Michael Dunn1-Sep-06 5:57
sitebuilderMichael Dunn1-Sep-06 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.