Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Variable Help Pin
Joshua Quick10-Apr-06 15:43
Joshua Quick10-Apr-06 15:43 
GeneralRe: Variable Help Pin
borono10-Apr-06 17:30
borono10-Apr-06 17:30 
AnswerRe: Variable Help Pin
Joshua Quick10-Apr-06 17:49
Joshua Quick10-Apr-06 17:49 
GeneralRe: Variable Help Pin
borono11-Apr-06 10:43
borono11-Apr-06 10:43 
GeneralRe: Variable Help Pin
Joshua Quick11-Apr-06 12:05
Joshua Quick11-Apr-06 12:05 
QuestionCTreeCtrl checkboxes Pin
CodeGoose10-Apr-06 11:34
CodeGoose10-Apr-06 11:34 
QuestionOverloads resolution crazyness ? Pin
Marcello10-Apr-06 11:29
Marcello10-Apr-06 11:29 
AnswerRe: Overloads resolution crazyness ? Pin
Ryan Binns10-Apr-06 18:33
Ryan Binns10-Apr-06 18:33 
For the first situation...

VCF::String::size_type and string::size_type are not the same type, so neither of the function calls match perfectly. However, both could match using implicit casting rules, hence the ambiguity. If you intend to call the first one, make sure the parameter is string::size_type rather than VCF::String::size_type

For the second situation...

Again, neither overload matches perfectly. You're calling a function called h from a non-const this pointer. The compiler can either implicitly convert this to a const pointer and call the first one, or it can implicitly convert E to an int and call the second one. Neither conversion has preference over the other, so there is an ambiguity. The reason uncommenting the other definition of h works is because it is a perfect match to the function call - there is no conversion required.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Overloads resolution crazyness ? Pin
Marcello10-Apr-06 21:05
Marcello10-Apr-06 21:05 
GeneralRe: Overloads resolution crazyness ? Pin
Ryan Binns10-Apr-06 22:50
Ryan Binns10-Apr-06 22:50 
GeneralQuick question about IEEE floating points Pin
Jörgen Sigvardsson10-Apr-06 10:39
Jörgen Sigvardsson10-Apr-06 10:39 
GeneralRe: Quick question about IEEE floating points Pin
cmk10-Apr-06 15:04
cmk10-Apr-06 15:04 
QuestionLogo on a dialog app Pin
LCI10-Apr-06 9:59
LCI10-Apr-06 9:59 
QuestionRe: Logo on a dialog app Pin
David Crow10-Apr-06 10:03
David Crow10-Apr-06 10:03 
AnswerRe: Logo on a dialog app Pin
LCI10-Apr-06 10:20
LCI10-Apr-06 10:20 
GeneralRe: Logo on a dialog app Pin
Laxman Auti10-Apr-06 17:55
Laxman Auti10-Apr-06 17:55 
QuestionRe: Logo on a dialog app Pin
David Crow11-Apr-06 2:40
David Crow11-Apr-06 2:40 
AnswerLogo on a dialog app Pin
_AnsHUMAN_ 10-Apr-06 18:15
_AnsHUMAN_ 10-Apr-06 18:15 
AnswerRe: Logo on a dialog app Pin
Ryan Binns10-Apr-06 18:37
Ryan Binns10-Apr-06 18:37 
AnswerRe: Logo on a dialog app Pin
Krishnatv10-Apr-06 19:22
Krishnatv10-Apr-06 19:22 
AnswerRe: Logo on a dialog app Pin
Ștefan-Mihai MOGA11-Apr-06 0:09
professionalȘtefan-Mihai MOGA11-Apr-06 0:09 
Questionwindow update Pin
pnpfriend10-Apr-06 7:27
pnpfriend10-Apr-06 7:27 
AnswerRe: window update Pin
Ravi Bhavnani10-Apr-06 7:41
professionalRavi Bhavnani10-Apr-06 7:41 
QuestionRe: window update Pin
David Crow10-Apr-06 8:19
David Crow10-Apr-06 8:19 
AnswerRe: window update Pin
pnpfriend10-Apr-06 8:56
pnpfriend10-Apr-06 8:56 

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.