Click here to Skip to main content
16,017,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Image Pin
deeps_cute22-May-07 17:50
deeps_cute22-May-07 17:50 
GeneralRe: Image Pin
Hamid_RT22-May-07 19:03
Hamid_RT22-May-07 19:03 
QuestionRe: Image Pin
Hamid_RT23-May-07 6:09
Hamid_RT23-May-07 6:09 
GeneralRe: Image Pin
Mark Salsbery23-May-07 7:12
Mark Salsbery23-May-07 7:12 
QuestionTemplate function compilation and linking question. Pin
Maximilien22-May-07 4:43
Maximilien22-May-07 4:43 
AnswerRe: Template function compilation and linking question. Pin
Nelek22-May-07 5:18
protectorNelek22-May-07 5:18 
GeneralRe: Template function compilation and linking question. Pin
jhwurmbach22-May-07 5:30
jhwurmbach22-May-07 5:30 
GeneralRe: Template function compilation and linking question. Pin
Arman S.22-May-07 5:33
Arman S.22-May-07 5:33 
an element type is a class? Because you are using the double "d" as the class in the second parameter of your template "T& value".

No. This is a template declaration and therefore the keyword class [or typename] stands for "some type".


And the second thing is that the template expects a reference, and you are passing the "object" itself.

try with: double* d = 0.0;


Again no. The terms you are using are messed up. First, double *d doesn't declare a reference but a pointer. Second, if it were, it would be wrong too; no need [even meaningless] to declare a reference to pass a function that takes its argument as a reference. You do provide a variable which is passed into the function by a reference value, and this is all.

--
=====
Arman

AnswerRe: Template function compilation and linking question. Pin
jhwurmbach22-May-07 5:34
jhwurmbach22-May-07 5:34 
AnswerRe: Template function compilation and linking question. Pin
Arman S.22-May-07 5:43
Arman S.22-May-07 5:43 
AnswerRe: Template function compilation and linking question. Pin
David Crow22-May-07 6:19
David Crow22-May-07 6:19 
AnswerRe: Template function compilation and linking question. Pin
cp987622-May-07 14:47
cp987622-May-07 14:47 
AnswerRe: Template function compilation and linking question. Pin
cmk22-May-07 18:07
cmk22-May-07 18:07 
AnswerRe: Template function compilation and linking question. Pin
Michael Dunn22-May-07 20:44
sitebuilderMichael Dunn22-May-07 20:44 
GeneralRe: Template function compilation and linking question. Pin
Maximilien23-May-07 13:17
Maximilien23-May-07 13:17 
QuestionMultiple string resources Pin
rrrado22-May-07 4:42
rrrado22-May-07 4:42 
AnswerRe: Multiple string resources Pin
Sameerkumar Namdeo23-May-07 0:51
Sameerkumar Namdeo23-May-07 0:51 
GeneralRe: Multiple string resources Pin
rrrado23-May-07 21:50
rrrado23-May-07 21:50 
QuestionProblems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
abhiakude22-May-07 4:18
abhiakude22-May-07 4:18 
QuestionRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
David Crow22-May-07 6:30
David Crow22-May-07 6:30 
AnswerRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
abhiakude22-May-07 19:20
abhiakude22-May-07 19:20 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
David Crow23-May-07 2:53
David Crow23-May-07 2:53 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
abhiakude24-May-07 21:13
abhiakude24-May-07 21:13 
GeneralRe: Problems in lock hotkeys like Alt+Tab,Alt+Esc,Ctrl+Alt+Del etc Pin
David Crow25-May-07 2:38
David Crow25-May-07 2:38 
QuestionReference Pin
Kiran Pinjala22-May-07 4:18
Kiran Pinjala22-May-07 4:18 

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.