Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalreturn type of conversion opeator Pin
George_George16-Dec-07 3:00
George_George16-Dec-07 3:00 
GeneralRe: return type of conversion opeator Pin
CPallini16-Dec-07 3:39
mveCPallini16-Dec-07 3:39 
GeneralRe: return type of conversion opeator Pin
George_George16-Dec-07 3:49
George_George16-Dec-07 3:49 
GeneralRe: return type of conversion opeator Pin
CPallini16-Dec-07 4:00
mveCPallini16-Dec-07 4:00 
GeneralRe: return type of conversion opeator Pin
George_George16-Dec-07 16:36
George_George16-Dec-07 16:36 
GeneralRe: return type of conversion opeator Pin
CPallini16-Dec-07 21:09
mveCPallini16-Dec-07 21:09 
GeneralRe: return type of conversion opeator Pin
George_George16-Dec-07 21:25
George_George16-Dec-07 21:25 
GeneralRe: return type of conversion opeator Pin
Mike Dimmick16-Dec-07 12:31
Mike Dimmick16-Dec-07 12:31 
If you mean "The C++ Programming Language" by Stroustrup, the reference in my copy (3rd edition) is on page 275, section 11.4 (Conversion Operators), where it says:

"Note that the type being converted to is part of the name of the operator and cannot be repeated as the return value of the conversion function."

If you want to return a G&, use operator G&.

DoEvents: Generating unexpected recursion since 1991

GeneralRe: return type of conversion opeator Pin
George_George16-Dec-07 16:34
George_George16-Dec-07 16:34 
GeneralCPL files Pin
samira forooghi16-Dec-07 1:24
samira forooghi16-Dec-07 1:24 
QuestionRe: CPL files Pin
Hamid_RT16-Dec-07 2:10
Hamid_RT16-Dec-07 2:10 
GeneralRe: CPL files Pin
Jeffrey Walton16-Dec-07 2:32
Jeffrey Walton16-Dec-07 2:32 
GeneralRe: CPL files Pin
ritz123416-Dec-07 19:36
ritz123416-Dec-07 19:36 
GeneralRe: CPL files Pin
samira forooghi16-Dec-07 19:56
samira forooghi16-Dec-07 19:56 
GeneralRe: CPL files Pin
Jeffrey Walton17-Dec-07 5:25
Jeffrey Walton17-Dec-07 5:25 
GeneralRe: CPL files Pin
samira forooghi16-Dec-07 19:54
samira forooghi16-Dec-07 19:54 
QuestionHow to write some data in CD progrmatically Pin
Nishad S15-Dec-07 22:37
Nishad S15-Dec-07 22:37 
AnswerRe: How to write some data in CD progrmatically Pin
CPallini16-Dec-07 0:01
mveCPallini16-Dec-07 0:01 
GeneralRe: How to write some data in CD progrmatically Pin
Nishad S16-Dec-07 0:36
Nishad S16-Dec-07 0:36 
GeneralRe: How to write some data in CD progrmatically Pin
Iain Clarke, Warrior Programmer16-Dec-07 8:38
Iain Clarke, Warrior Programmer16-Dec-07 8:38 
GeneralRe: How to write some data in CD progrmatically Pin
Nishad S16-Dec-07 16:34
Nishad S16-Dec-07 16:34 
AnswerRe: How to write some data in CD progrmatically Pin
Hamid_RT16-Dec-07 2:13
Hamid_RT16-Dec-07 2:13 
GeneralRe: How to write some data in CD progrmatically Pin
Nishad S16-Dec-07 16:35
Nishad S16-Dec-07 16:35 
Generalcatch mouse event Pin
Sabry190515-Dec-07 22:07
Sabry190515-Dec-07 22:07 
GeneralRe: catch mouse event Pin
CPallini16-Dec-07 3:49
mveCPallini16-Dec-07 3:49 

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.