Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 19:31
Stephen Hewitt11-Mar-08 19:31 
GeneralRe: template function argument deduce Pin
Rajkumar R11-Mar-08 20:33
Rajkumar R11-Mar-08 20:33 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 20:56
Stephen Hewitt11-Mar-08 20:56 
GeneralRe: template function argument deduce Pin
Rajkumar R11-Mar-08 21:28
Rajkumar R11-Mar-08 21:28 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 21:33
Stephen Hewitt11-Mar-08 21:33 
GeneralRe: template function argument deduce Pin
Rajkumar R11-Mar-08 21:36
Rajkumar R11-Mar-08 21:36 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 21:39
Stephen Hewitt11-Mar-08 21:39 
GeneralRe: template function argument deduce [modified] Pin
Rajkumar R12-Mar-08 0:02
Rajkumar R12-Mar-08 0:02 
Stephen Hewitt wrote:
which function is called depends on the type the expression is assigned to.


That is the use of implicit typecast, when implicit typecast the compiler uses the operator of the type, not all the functions which return the type.

And also if a function returns int doesnot restrict to assign to a variable of type long. The function is matched with the prototype and return type is evaluated for the further assignment statement.

implicit typecast (or explicit), takes the corresponding operator and not all the function that returns the corresponding type.
GeneralRe: template function argument deduce Pin
CPallini11-Mar-08 22:29
mveCPallini11-Mar-08 22:29 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 19:33
Stephen Hewitt11-Mar-08 19:33 
GeneralRe: template function argument deduce Pin
George_George11-Mar-08 19:52
George_George11-Mar-08 19:52 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 19:55
Stephen Hewitt11-Mar-08 19:55 
GeneralRe: template function argument deduce Pin
George_George11-Mar-08 20:35
George_George11-Mar-08 20:35 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 21:01
Stephen Hewitt11-Mar-08 21:01 
GeneralRe: template function argument deduce Pin
Stephen Hewitt11-Mar-08 21:13
Stephen Hewitt11-Mar-08 21:13 
GeneralRe: template function argument deduce Pin
George_George11-Mar-08 22:53
George_George11-Mar-08 22:53 
GeneralRe: template function argument deduce Pin
Stephen Hewitt13-Mar-08 13:50
Stephen Hewitt13-Mar-08 13:50 
GeneralRe: template function argument deduce Pin
George_George13-Mar-08 14:56
George_George13-Mar-08 14:56 
QuestionWhat will be the output Pin
KASR111-Mar-08 2:37
KASR111-Mar-08 2:37 
AnswerRe: What will be the output [modified] Pin
Rajkumar R11-Mar-08 2:43
Rajkumar R11-Mar-08 2:43 
GeneralRe: What will be the output Pin
toxcct11-Mar-08 3:41
toxcct11-Mar-08 3:41 
GeneralRe: What will be the output [modified] Pin
Rajkumar R11-Mar-08 3:54
Rajkumar R11-Mar-08 3:54 
GeneralRe: What will be the output Pin
CPallini11-Mar-08 5:27
mveCPallini11-Mar-08 5:27 
AnswerRe: What will be the output Pin
Maximilien11-Mar-08 2:49
Maximilien11-Mar-08 2:49 
AnswerRe: What will be the output Pin
CPallini11-Mar-08 2:52
mveCPallini11-Mar-08 2:52 

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.