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

C / C++ / MFC

 
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 
JokeRe: Hey man [modified] Pin
Nelek17-Dec-07 3:46
protectorNelek17-Dec-07 3:46 
GeneralRe: Hey man Pin
Nelek17-Dec-07 4:25
protectorNelek17-Dec-07 4:25 
GeneralRe: Get lvalue through rvalue [modified] Pin
George L. Jackson17-Dec-07 4:47
George L. Jackson17-Dec-07 4:47 
AFAIK, f(X()) doesn't compile because X() doesn't exist long enough (or is optimised away) to be passsed by reference (the X& reference requires a X instance to be initialized) into f(X& x). f(X() = X()) works because two temporary objects are created; the assignment operator is fired, and a reference to the lhs temporary object is passed into f(X() = X()).

IMHO, this code only demonstrates temporary objects and has no practical usage. It is like creating two trucks; cloning the features of one truck into the other, using the cloned truck for a bit, and destroying both trucks when done with the cloned one.
"We make a living by what we get, we make a life by what we give." --Winston Churchill

modified on Monday, December 17, 2007 12:32:25 PM

GeneralRe: Get lvalue through rvalue Pin
George_George18-Dec-07 0:26
George_George18-Dec-07 0:26 
GeneralRe: Get lvalue through rvalue Pin
George L. Jackson18-Dec-07 15:52
George L. Jackson18-Dec-07 15:52 
GeneralRe: Get lvalue through rvalue Pin
George_George18-Dec-07 18:50
George_George18-Dec-07 18:50 
GeneralFile/Folder Pin
john563217-Dec-07 1:53
john563217-Dec-07 1:53 
GeneralRe: File/Folder Pin
Matthew Faithfull17-Dec-07 1:59
Matthew Faithfull17-Dec-07 1:59 
GeneralRe: File/Folder Pin
john563217-Dec-07 2:10
john563217-Dec-07 2:10 
GeneralRe: File/Folder Pin
Matthew Faithfull17-Dec-07 2:23
Matthew Faithfull17-Dec-07 2:23 
GeneralRe: File/Folder Pin
Naveen17-Dec-07 2:11
Naveen17-Dec-07 2:11 
QuestionCListCtrl allways show only the first items??? Pin
bosfan17-Dec-07 1:48
bosfan17-Dec-07 1:48 
AnswerRe: CListCtrl allways show only the first items??? Pin
hameduser17-Dec-07 2:39
hameduser17-Dec-07 2:39 
GeneralRe: CListCtrl allways show only the first items??? [modified] Pin
bosfan17-Dec-07 3:18
bosfan17-Dec-07 3:18 
GeneralRe: CListCtrl allways show only the first items??? Pin
bosfan17-Dec-07 4:48
bosfan17-Dec-07 4:48 
Generalexternal asm file Pin
zon_cpp17-Dec-07 1:44
zon_cpp17-Dec-07 1:44 
Generaladd int to date Pin
Try17-Dec-07 0:41
Try17-Dec-07 0:41 
QuestionRe: add int to date Pin
CPallini17-Dec-07 0:48
mveCPallini17-Dec-07 0:48 
GeneralRe: add int to date Pin
Maximilien17-Dec-07 0:59
Maximilien17-Dec-07 0:59 
GeneralRe: add int to date Pin
Try17-Dec-07 1:09
Try17-Dec-07 1:09 

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.