Click here to Skip to main content
15,905,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template specialization Pin
Nelek12-Sep-07 4:32
protectorNelek12-Sep-07 4:32 
GeneralRe: template specialization Pin
Russell'12-Sep-07 5:15
Russell'12-Sep-07 5:15 
GeneralRe: template specialization Pin
Russell'12-Sep-07 4:35
Russell'12-Sep-07 4:35 
QuestionC++ templates Pin
minkowski12-Sep-07 2:48
minkowski12-Sep-07 2:48 
AnswerRe: C++ templates Pin
Jonathan [Darka]12-Sep-07 2:49
professionalJonathan [Darka]12-Sep-07 2:49 
GeneralRe: C++ templates Pin
minkowski12-Sep-07 3:09
minkowski12-Sep-07 3:09 
GeneralRe: C++ templates Pin
Cedric Moonen12-Sep-07 3:16
Cedric Moonen12-Sep-07 3:16 
GeneralRe: C++ templates Pin
jhwurmbach12-Sep-07 3:19
jhwurmbach12-Sep-07 3:19 
You do *not* have to have definitions in th ecpp.
You do this to (partially) separate interface and implementation.

With templates, every instantiation (for type A, type B etc) creates a new, distinct type: vector<A> is different from vector<B>.
And for this instantiation, the compiler needs the complete definition of the template. Therefore it is easiest to put the template in the header, to have it ready when you need it.


Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words

AnswerRe: C++ templates Pin
Russell'12-Sep-07 3:18
Russell'12-Sep-07 3:18 
AnswerRe: C++ templates Pin
Nemanja Trifunovic12-Sep-07 5:00
Nemanja Trifunovic12-Sep-07 5:00 
QuestionIs it possible to hide a column of a Clist control? Pin
Md. Ali Naser Khan12-Sep-07 2:40
Md. Ali Naser Khan12-Sep-07 2:40 
QuestionRe: Is it possible to hide a column of a Clist control? Pin
David Crow12-Sep-07 2:52
David Crow12-Sep-07 2:52 
AnswerRe: Is it possible to hide a column of a Clist control? Pin
Nishad S12-Sep-07 3:00
Nishad S12-Sep-07 3:00 
AnswerRe: Is it possible to hide a column of a Clist control? Pin
Manfred Staiger12-Sep-07 3:02
Manfred Staiger12-Sep-07 3:02 
AnswerRe: Is it possible to hide a column of a Clist control? Pin
Hamid_RT12-Sep-07 6:48
Hamid_RT12-Sep-07 6:48 
QuestionDifference between debug and release builds Pin
bhogavalli suresh12-Sep-07 2:10
bhogavalli suresh12-Sep-07 2:10 
AnswerRe: Difference between debug and release builds Pin
chandu00412-Sep-07 2:19
chandu00412-Sep-07 2:19 
AnswerRe: Difference between debug and release builds Pin
Nelek12-Sep-07 2:39
protectorNelek12-Sep-07 2:39 
AnswerRe: Difference between debug and release builds Pin
Jonathan [Darka]12-Sep-07 2:52
professionalJonathan [Darka]12-Sep-07 2:52 
GeneralRe: Difference between debug and release builds Pin
Chris Losinger12-Sep-07 7:10
professionalChris Losinger12-Sep-07 7:10 
AnswerRe: Difference between debug and release builds Pin
carrivick12-Sep-07 5:36
carrivick12-Sep-07 5:36 
AnswerRe: Difference between debug and release builds Pin
Hamid_RT12-Sep-07 6:59
Hamid_RT12-Sep-07 6:59 
QuestionError when dumping PE file Pin
sawerr12-Sep-07 2:06
sawerr12-Sep-07 2:06 
AnswerRe: Error when dumping PE file Pin
David Crow12-Sep-07 2:56
David Crow12-Sep-07 2:56 
GeneralRe: Error when dumping PE file Pin
sawerr12-Sep-07 3:47
sawerr12-Sep-07 3:47 

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.