Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what wrong with this function template? Pin
ilostmyid225-May-04 3:25
professionalilostmyid225-May-04 3:25 
GeneralRe: what wrong with this function template? Pin
DengJW25-May-04 3:36
DengJW25-May-04 3:36 
GeneralRe: what wrong with this function template? Pin
ilostmyid225-May-04 3:43
professionalilostmyid225-May-04 3:43 
AnswerRe: what wrong with this function template? Pin
Henrik Stuart25-May-04 2:49
Henrik Stuart25-May-04 2:49 
GeneralRe: what wrong with this function template? Pin
DengJW25-May-04 3:06
DengJW25-May-04 3:06 
GeneralRe: what wrong with this function template? Pin
Henrik Stuart25-May-04 3:14
Henrik Stuart25-May-04 3:14 
GeneralRe: what wrong with this function template? Pin
DengJW25-May-04 3:31
DengJW25-May-04 3:31 
GeneralRe: what wrong with this function template? Pin
Henrik Stuart25-May-04 3:54
Henrik Stuart25-May-04 3:54 
As ilostmyid2 pointed out then TFun(5.4321, 1.2345) calls the template function with T = double, if you want to use the float TFun(float, float); function instead you should call it with TFun(5.4321f, 1.2345f);.

In other words, you are trying to match the wrong types together, and naturally the template function will be chosen as the primitive float function is never being picked by your code.

Hope that should clarify it.

--
Henrik Stuart (http://www.unprompted.com/hstuart/[^])
AnswerI understand now. thanks,.. ilostmyid2 , henrik and papa Pin
DengJW25-May-04 4:20
DengJW25-May-04 4:20 
Questionhow to create temporary canvas Pin
Arun AC25-May-04 2:15
Arun AC25-May-04 2:15 
AnswerRe: how to create temporary canvas Pin
Anthony_Yio25-May-04 2:22
Anthony_Yio25-May-04 2:22 
GeneralRegex Pin
shiraztk25-May-04 1:24
shiraztk25-May-04 1:24 
GeneralRe: Regex Pin
Anthony_Yio25-May-04 2:18
Anthony_Yio25-May-04 2:18 
Generala question about email address of america Pin
includeh1025-May-04 0:53
includeh1025-May-04 0:53 
GeneralRe: a question about email address of america Pin
Maximilien25-May-04 0:59
Maximilien25-May-04 0:59 
General830305 - Invalid adjustment in RTL menus Pin
ilostmyid225-May-04 0:26
professionalilostmyid225-May-04 0:26 
Generalopen file dialog in wrong position Pin
si_6924-May-04 23:20
si_6924-May-04 23:20 
GeneralRe: open file dialog in wrong position Pin
jmkhael24-May-04 23:33
jmkhael24-May-04 23:33 
GeneralRe: open file dialog in wrong position Pin
si_6924-May-04 23:44
si_6924-May-04 23:44 
GeneralRe: open file dialog in wrong position Pin
jmkhael24-May-04 23:54
jmkhael24-May-04 23:54 
GeneralRe: open file dialog in wrong position Pin
si_6925-May-04 0:05
si_6925-May-04 0:05 
GeneralRe: open file dialog in wrong position Pin
jmkhael25-May-04 0:20
jmkhael25-May-04 0:20 
GeneralRe: open file dialog in wrong position Pin
si_6925-May-04 0:43
si_6925-May-04 0:43 
GeneralRe: open file dialog in wrong position Pin
David Crow25-May-04 2:04
David Crow25-May-04 2:04 
GeneralATL ActiveX control for MSAccess Forms Pin
Dimitris Vasiliadis24-May-04 23:06
Dimitris Vasiliadis24-May-04 23:06 

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.