Click here to Skip to main content
15,899,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hey man Pin
George_George17-Dec-07 3:22
George_George17-Dec-07 3:22 
GeneralRe: Hey man PinPopular
CPallini17-Dec-07 3:25
mveCPallini17-Dec-07 3:25 
GeneralRe: Hey man Pin
George_George17-Dec-07 3:32
George_George17-Dec-07 3:32 
GeneralRe: Hey man Pin
CPallini17-Dec-07 3:54
mveCPallini17-Dec-07 3:54 
GeneralRe: Hey man PinPopular
toxcct17-Dec-07 3:26
toxcct17-Dec-07 3:26 
JokeOff-topic Pin
CPallini17-Dec-07 3:33
mveCPallini17-Dec-07 3:33 
GeneralRe: Off-topic PinPopular
toxcct17-Dec-07 3:35
toxcct17-Dec-07 3:35 
GeneralRe: Off-topic Pin
George_George17-Dec-07 3:43
George_George17-Dec-07 3:43 
Hi toxcct,


Please makes your hands dirty with this sample. It is not very hard. My thoughts are,

f (X().operator=(X()));

the copy assignment operator is invoked, and this can handle an rvalue as its argument. Then, it returns a reference, so f() can handle the reference as it is an lvalue.

It is appreciated if you could comment and correct me if I am wrong. Smile | :)


regards,
George
GeneralRe: Off-topic [modified] PinPopular
toxcct17-Dec-07 3:45
toxcct17-Dec-07 3:45 
GeneralRe: Off-topic Pin
toxcct17-Dec-07 4:41
toxcct17-Dec-07 4:41 
GeneralRe: Off-topic Pin
David Crow17-Dec-07 5:32
David Crow17-Dec-07 5:32 
GeneralRe: Off-topic Pin
toxcct17-Dec-07 5:37
toxcct17-Dec-07 5:37 
GeneralRe: Off-topic Pin
David Crow17-Dec-07 11:07
David Crow17-Dec-07 11:07 
Joke[Message Deleted] Pin
rogery27-Dec-07 6:30
rogery27-Dec-07 6:30 
GeneralRe: Off-topic Pin
George_George27-Dec-07 16:37
George_George27-Dec-07 16:37 
GeneralRe: Off-topic Pin
CPallini28-Dec-07 1:55
mveCPallini28-Dec-07 1:55 
JokeRe: Off-topic Pin
CPallini17-Dec-07 4:01
mveCPallini17-Dec-07 4:01 
GeneralRe: Off-topic Pin
George_George17-Dec-07 3:41
George_George17-Dec-07 3:41 
GeneralRe: Off-topic PinPopular
toxcct17-Dec-07 3:43
toxcct17-Dec-07 3:43 
GeneralRe: Off-topic Pin
CPallini17-Dec-07 4:04
mveCPallini17-Dec-07 4:04 
GeneralRe: Hey man Pin
George_George17-Dec-07 3:36
George_George17-Dec-07 3:36 
GeneralRe: Hey man Pin
toxcct17-Dec-07 3:39
toxcct17-Dec-07 3:39 
GeneralRe: Hey man Pin
Nelek17-Dec-07 3:28
protectorNelek17-Dec-07 3:28 
GeneralRe: Hey man Pin
George_George17-Dec-07 3:38
George_George17-Dec-07 3:38 
RantRe: Hey man [modified] Pin
toxcct17-Dec-07 3:41
toxcct17-Dec-07 3:41 

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.