Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need a help with TreeListView realization on C++ Winapi (without MFC) Pin
sax_0H21-Sep-08 19:03
sax_0H21-Sep-08 19:03 
Questionerror concerning _TEMPLATE_MEMBER Pin
steph521-Sep-08 7:09
steph521-Sep-08 7:09 
QuestionHow - to hide the mouse pointer - MFC Pin
simon alec smith21-Sep-08 5:24
simon alec smith21-Sep-08 5:24 
AnswerRe: How - to hide the mouse pointer - MFC Pin
Mark Salsbery21-Sep-08 6:33
Mark Salsbery21-Sep-08 6:33 
GeneralRe: How - to hide the mouse pointer - MFC Pin
simon alec smith22-Sep-08 4:55
simon alec smith22-Sep-08 4:55 
QuestionHow change frame color style ? Pin
ta_isr21-Sep-08 1:32
ta_isr21-Sep-08 1:32 
AnswerRe: How change frame color style ? Pin
Mark Salsbery21-Sep-08 6:40
Mark Salsbery21-Sep-08 6:40 
Questiontemplate class inheritance issue Pin
George_George20-Sep-08 22:03
George_George20-Sep-08 22:03 
Hello everyone,


For C++ template, it will be expanded at compile time other than runtime. So, I think in the code below for line "Abc<Foo>", it will be expanded to Abc : Foo at compile time, and for line "Abc<Goo> ", it will be expanded to Abc:Goo.

So, I think only one class named Abc exists in final binary after expansion, and it is the same as written Abc:Foo, Goo for the same effect?

class Foo
{

};

class Goo
{

};

template <class T>
class Abc : T
{

};

int main()
{
	Abc<Foo> f;
	Abc<Goo> g;

	return 0;
}


regards,
George
QuestionRe: template class inheritance issue Pin
Nemanja Trifunovic21-Sep-08 13:56
Nemanja Trifunovic21-Sep-08 13:56 
AnswerRe: template class inheritance issue Pin
George_George21-Sep-08 19:52
George_George21-Sep-08 19:52 
GeneralRe: template class inheritance issue Pin
CPallini21-Sep-08 21:43
mveCPallini21-Sep-08 21:43 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 22:16
George_George21-Sep-08 22:16 
GeneralRe: template class inheritance issue Pin
CPallini21-Sep-08 22:44
mveCPallini21-Sep-08 22:44 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 23:01
George_George21-Sep-08 23:01 
AnswerRe: template class inheritance issue Pin
Malli_S21-Sep-08 19:36
Malli_S21-Sep-08 19:36 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 19:55
George_George21-Sep-08 19:55 
GeneralRe: template class inheritance issue Pin
Malli_S21-Sep-08 20:06
Malli_S21-Sep-08 20:06 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 20:34
George_George21-Sep-08 20:34 
GeneralRe: template class inheritance issue Pin
SandipG 21-Sep-08 21:32
SandipG 21-Sep-08 21:32 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 22:14
George_George21-Sep-08 22:14 
GeneralRe: template class inheritance issue Pin
SandipG 21-Sep-08 22:51
SandipG 21-Sep-08 22:51 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 23:04
George_George21-Sep-08 23:04 
GeneralRe: template class inheritance issue Pin
SandipG 21-Sep-08 23:21
SandipG 21-Sep-08 23:21 
GeneralRe: template class inheritance issue Pin
George_George21-Sep-08 23:32
George_George21-Sep-08 23:32 
GeneralRe: template class inheritance issue Pin
SandipG 21-Sep-08 23:34
SandipG 21-Sep-08 23:34 

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.