Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OS Threads Scheduling Pin
pbraun27-Feb-08 9:32
pbraun27-Feb-08 9:32 
QuestionHow to integrate *.htm in MFC program? Pin
TooShy2Talk27-Feb-08 0:02
TooShy2Talk27-Feb-08 0:02 
QuestionRe: How to integrate *.htm in MFC program? Pin
Maxwell Chen27-Feb-08 0:09
Maxwell Chen27-Feb-08 0:09 
AnswerRe: How to integrate *.htm in MFC program? Pin
Rajesh R Subramanian27-Feb-08 0:16
professionalRajesh R Subramanian27-Feb-08 0:16 
GeneralRe: How to integrate *.htm in MFC program? Pin
Demian Panello27-Feb-08 1:42
Demian Panello27-Feb-08 1:42 
GeneralRe: How to integrate *.htm in MFC program? Pin
Hamid_RT27-Feb-08 5:05
Hamid_RT27-Feb-08 5:05 
GeneralPaint problems during scrolling Pin
misha_grewal26-Feb-08 23:26
misha_grewal26-Feb-08 23:26 
Questionwhy no ambiguity error in code? Pin
George_George26-Feb-08 23:17
George_George26-Feb-08 23:17 
Hello everyone,


Any ideas why there is no ambiguity issues in the code? Which myfunc is called?

The code can pass compile and link in Visual Studio 2008 without any warning messages. The output is 100.

int myfunc (int& a) {return 100;}

int myfunc (const int& a) {return 200;}

int main()
{
	int a = 1;
	int& ra = a;
	int rtn;
	rtn = myfunc (ra); // call which myfunc? output 100
	return 0;
}



thanks in advance,
George
AnswerRe: why no ambiguity error in code? Pin
Rajkumar R26-Feb-08 23:45
Rajkumar R26-Feb-08 23:45 
GeneralRe: why no ambiguity error in code? Pin
George_George27-Feb-08 0:13
George_George27-Feb-08 0:13 
AnswerRe: why no ambiguity error in code? Pin
Rajkumar R27-Feb-08 0:30
Rajkumar R27-Feb-08 0:30 
GeneralRe: why no ambiguity error in code? Pin
George_George27-Feb-08 0:59
George_George27-Feb-08 0:59 
GeneralRe: why no ambiguity error in code? Pin
Rajkumar R27-Feb-08 1:34
Rajkumar R27-Feb-08 1:34 
GeneralRe: why no ambiguity error in code? Pin
George_George27-Feb-08 1:43
George_George27-Feb-08 1:43 
GeneralRe: why no ambiguity error in code? Pin
Arman S.27-Feb-08 0:37
Arman S.27-Feb-08 0:37 
GeneralRe: why no ambiguity error in code? Pin
George_George27-Feb-08 0:50
George_George27-Feb-08 0:50 
GeneralTooltip Pin
sv1426-Feb-08 23:13
sv1426-Feb-08 23:13 
AnswerRe: Tooltip Pin
Rajkumar R26-Feb-08 23:48
Rajkumar R26-Feb-08 23:48 
GeneralRe: Tooltip Pin
Iain Clarke, Warrior Programmer27-Feb-08 0:05
Iain Clarke, Warrior Programmer27-Feb-08 0:05 
Generalstruct inside a class Pin
George_George26-Feb-08 21:51
George_George26-Feb-08 21:51 
GeneralRe: struct inside a class Pin
Maxwell Chen26-Feb-08 23:57
Maxwell Chen26-Feb-08 23:57 
GeneralRe: struct inside a class Pin
George_George27-Feb-08 0:26
George_George27-Feb-08 0:26 
GeneralRe: struct inside a class Pin
Maxwell Chen27-Feb-08 1:48
Maxwell Chen27-Feb-08 1:48 
GeneralRe: struct inside a class Pin
George_George27-Feb-08 1:53
George_George27-Feb-08 1:53 
Generalneed help Pin
gentleguy26-Feb-08 21:19
gentleguy26-Feb-08 21:19 

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.