Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Failed to initialize object in a constructor Pin
cydd8-Mar-08 22:37
cydd8-Mar-08 22:37 
Generalgraph plotting.. Pin
Member 47738777-Mar-08 23:00
Member 47738777-Mar-08 23:00 
GeneralRe: graph plotting.. Pin
CPallini7-Mar-08 23:35
mveCPallini7-Mar-08 23:35 
GeneralRe: graph plotting.. Pin
Member 47738778-Mar-08 0:51
Member 47738778-Mar-08 0:51 
Generalinstantiation point discussion Pin
George_George7-Mar-08 22:24
George_George7-Mar-08 22:24 
GeneralRe: instantiation point discussion Pin
Rajkumar R7-Mar-08 22:43
Rajkumar R7-Mar-08 22:43 
GeneralRe: instantiation point discussion Pin
George_George7-Mar-08 23:01
George_George7-Mar-08 23:01 
GeneralRe: instantiation point discussion Pin
Rajkumar R7-Mar-08 23:23
Rajkumar R7-Mar-08 23:23 
George_George wrote:
I think you mean the sample in my original question, right?

yes.


George_George wrote:
why if compile successful implies f is instantised by g(int) declaration other than f(2) inside h()?

I would reformat this phrase,
if compile successful implies, at the point of function template instantiation 'void f<int> (T)' (i.e f(2) inside h()) being compiled g(a) is deduced to g(int), whose declaration is in the nearest global( or namespace, if called by scope resolution operator) scope.

actually f(2) in h() is used instantiate the template function f(T), where <T> is deduced to <int>
GeneralRe: instantiation point discussion Pin
George_George8-Mar-08 22:03
George_George8-Mar-08 22:03 
GeneralRe: instantiation point discussion Pin
Rajkumar R9-Mar-08 2:07
Rajkumar R9-Mar-08 2:07 
GeneralRe: instantiation point discussion Pin
George_George9-Mar-08 2:24
George_George9-Mar-08 2:24 
GeneralRe: instantiation point discussion Pin
Rajkumar R9-Mar-08 3:01
Rajkumar R9-Mar-08 3:01 
GeneralRe: instantiation point discussion Pin
George_George9-Mar-08 3:15
George_George9-Mar-08 3:15 
AnswerRe: instantiation point discussion Pin
Rajkumar R9-Mar-08 3:27
Rajkumar R9-Mar-08 3:27 
GeneralRe: instantiation point discussion Pin
George_George9-Mar-08 15:28
George_George9-Mar-08 15:28 
GeneralMSDN template sample Pin
George_George7-Mar-08 20:36
George_George7-Mar-08 20:36 
GeneralRe: MSDN template sample Pin
CPallini7-Mar-08 23:29
mveCPallini7-Mar-08 23:29 
GeneralRe: MSDN template sample Pin
George_George8-Mar-08 21:59
George_George8-Mar-08 21:59 
GeneralRe: MSDN template sample Pin
CPallini8-Mar-08 22:55
mveCPallini8-Mar-08 22:55 
GeneralRe: MSDN template sample Pin
George_George9-Mar-08 2:05
George_George9-Mar-08 2:05 
GeneralRe: MSDN template sample Pin
CPallini9-Mar-08 3:57
mveCPallini9-Mar-08 3:57 
GeneralRe: MSDN template sample Pin
George_George9-Mar-08 15:22
George_George9-Mar-08 15:22 
GeneralRe: MSDN template sample Pin
CPallini9-Mar-08 22:08
mveCPallini9-Mar-08 22:08 
GeneralRe: MSDN template sample Pin
George_George9-Mar-08 22:35
George_George9-Mar-08 22:35 
QuestionRe: MSDN template sample Pin
CPallini9-Mar-08 22:48
mveCPallini9-Mar-08 22:48 

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.