Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
toxcct wrote:
template classes inmplementations have to be in the header.


This is only because there is no compiler out there that meets this part of the standard (mainly due to the insane complexity it takes to accomplish it). The standard allows for placing template definitions in header files and implementations in cpp files.

To get around this problem, I generally either put the entire class definition and implementation into a single file, or I place a #include "myclass.cpp" at the bottom of my header file.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

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 
QuestionQuestion about dynamically allocated memory Pin
Eikthrynir31-Aug-06 21:37
Eikthrynir31-Aug-06 21:37 
AnswerRe: Question about dynamically allocated memory Pin
Stephen Hewitt31-Aug-06 21:43
Stephen Hewitt31-Aug-06 21:43 
AnswerRe: Question about dynamically allocated memory Pin
prasad_som31-Aug-06 22:21
prasad_som31-Aug-06 22:21 
AnswerRe: Question about dynamically allocated memory Pin
Hamid_RT31-Aug-06 22:48
Hamid_RT31-Aug-06 22:48 
GeneralRe: Question about dynamically allocated memory Pin
Cedric Moonen31-Aug-06 23:02
Cedric Moonen31-Aug-06 23:02 
GeneralRe: Question about dynamically allocated memory Pin
Hamid_RT1-Sep-06 1:02
Hamid_RT1-Sep-06 1:02 
GeneralRe: Question about dynamically allocated memory Pin
Cedric Moonen1-Sep-06 1:14
Cedric Moonen1-Sep-06 1:14 
GeneralRe: Question about dynamically allocated memory Pin
Hamid_RT1-Sep-06 1:32
Hamid_RT1-Sep-06 1:32 
Questionclrscr() Pin
Rajesh R Subramanian31-Aug-06 21:22
professionalRajesh R Subramanian31-Aug-06 21:22 
AnswerRe: clrscr() Pin
_AnsHUMAN_ 31-Aug-06 21:49
_AnsHUMAN_ 31-Aug-06 21:49 

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.