Click here to Skip to main content
15,886,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to take Active window file as ainput file in mfc Pin
mastp5-Mar-08 22:33
mastp5-Mar-08 22:33 
Generalusing CColorDialog Pin
Gita.Bairavi5-Mar-08 22:22
Gita.Bairavi5-Mar-08 22:22 
QuestionRe: using CColorDialog Pin
Rajkumar R5-Mar-08 22:47
Rajkumar R5-Mar-08 22:47 
Generaltemplate function instantiation Pin
George_George5-Mar-08 22:22
George_George5-Mar-08 22:22 
GeneralRe: template function instantiation Pin
CPallini5-Mar-08 22:35
mveCPallini5-Mar-08 22:35 
GeneralRe: template function instantiation Pin
George_George5-Mar-08 22:51
George_George5-Mar-08 22:51 
QuestionRe: template function instantiation Pin
CPallini5-Mar-08 22:53
mveCPallini5-Mar-08 22:53 
GeneralRe: template function instantiation Pin
George_George5-Mar-08 23:01
George_George5-Mar-08 23:01 
Hi CPallini,


Bjarne's point, void g(int) statement will instantise
template <class T> void f (T a) { g(a); }


by deducing the type of T int, since in g(a), type of a is T and we are declaring g(int).

My question is why extern g(double) does not have the same effect to deduct parameter T to double?


regards,
George
GeneralRe: template function instantiation Pin
CPallini5-Mar-08 23:23
mveCPallini5-Mar-08 23:23 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 0:12
George_George6-Mar-08 0:12 
GeneralRe: template function instantiation Pin
toxcct5-Mar-08 23:53
toxcct5-Mar-08 23:53 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 0:11
George_George6-Mar-08 0:11 
GeneralRe: template function instantiation Pin
Rajkumar R5-Mar-08 23:30
Rajkumar R5-Mar-08 23:30 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 0:07
George_George6-Mar-08 0:07 
GeneralRe: template function instantiation Pin
Rajkumar R6-Mar-08 0:52
Rajkumar R6-Mar-08 0:52 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 0:59
George_George6-Mar-08 0:59 
GeneralRe: template function instantiation Pin
Rajkumar R6-Mar-08 1:08
Rajkumar R6-Mar-08 1:08 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 1:21
George_George6-Mar-08 1:21 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 0:29
George_George6-Mar-08 0:29 
AnswerRe: template function instantiation [modified] Pin
Rajkumar R6-Mar-08 1:00
Rajkumar R6-Mar-08 1:00 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 1:56
George_George6-Mar-08 1:56 
GeneralRe: template function instantiation Pin
Rajkumar R6-Mar-08 2:04
Rajkumar R6-Mar-08 2:04 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 2:08
George_George6-Mar-08 2:08 
GeneralRe: template function instantiation Pin
Rajkumar R6-Mar-08 2:23
Rajkumar R6-Mar-08 2:23 
GeneralRe: template function instantiation Pin
George_George6-Mar-08 15:11
George_George6-Mar-08 15:11 

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.