Click here to Skip to main content
16,013,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike27-Mar-08 4:23
led mike27-Mar-08 4:23 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 4:42
George_George27-Mar-08 4:42 
GeneralRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 4:32
mveCPallini27-Mar-08 4:32 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 4:40
George_George27-Mar-08 4:40 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike27-Mar-08 4:45
led mike27-Mar-08 4:45 
GeneralRe: Exception-Safe Copy Assignment Pin
peterchen27-Mar-08 5:51
peterchen27-Mar-08 5:51 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 17:39
George_George27-Mar-08 17:39 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike28-Mar-08 4:41
led mike28-Mar-08 4:41 
George_George wrote:
the statement "cannot in general roll back the change already made to t1_", why can not?


I don't care why can't since you shouldn't anyway. It would be "bad practice" to do something like that (rollback) in an assignment operator because the user will not expect that outcome which then leads to errors that are difficult to locate. Again I highly recommend anyone that aspires to be more than a junior C++ developer reads Meyers Effective C++ books. The material he covers is far more valuable than knowing which register they keep the stack pointer in or how the VTable works.


led mike

GeneralRe: Exception-Safe Copy Assignment Pin
George_George28-Mar-08 5:07
George_George28-Mar-08 5:07 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike28-Mar-08 6:01
led mike28-Mar-08 6:01 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George28-Mar-08 21:13
George_George28-Mar-08 21:13 
QuestionRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 4:49
mveCPallini27-Mar-08 4:49 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 17:54
George_George27-Mar-08 17:54 
GeneralRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 22:17
mveCPallini27-Mar-08 22:17 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 23:23
George_George27-Mar-08 23:23 
GeneralRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 23:41
mveCPallini27-Mar-08 23:41 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 23:50
George_George27-Mar-08 23:50 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike27-Mar-08 4:41
led mike27-Mar-08 4:41 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 4:43
George_George27-Mar-08 4:43 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike27-Mar-08 4:47
led mike27-Mar-08 4:47 
GeneralRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 4:56
mveCPallini27-Mar-08 4:56 
GeneralRe: Exception-Safe Copy Assignment Pin
George_George27-Mar-08 17:52
George_George27-Mar-08 17:52 
QuestionRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 4:45
mveCPallini27-Mar-08 4:45 
GeneralRe: Exception-Safe Copy Assignment Pin
led mike27-Mar-08 4:50
led mike27-Mar-08 4:50 
GeneralRe: Exception-Safe Copy Assignment Pin
CPallini27-Mar-08 4:58
mveCPallini27-Mar-08 4:58 

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.