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

C / C++ / MFC

 
GeneralRe: constructor for POD types? Pin
Michael Dunn16-Mar-08 16:08
sitebuilderMichael Dunn16-Mar-08 16:08 
GeneralRe: constructor for POD types? Pin
George_George16-Mar-08 16:31
George_George16-Mar-08 16:31 
GeneralRe: constructor for POD types? Pin
Michael Dunn16-Mar-08 16:38
sitebuilderMichael Dunn16-Mar-08 16:38 
GeneralRe: constructor for POD types? Pin
George_George16-Mar-08 16:42
George_George16-Mar-08 16:42 
GeneralRe: constructor for POD types? Pin
Michael Dunn16-Mar-08 16:57
sitebuilderMichael Dunn16-Mar-08 16:57 
GeneralRe: constructor for POD types? Pin
George_George16-Mar-08 22:50
George_George16-Mar-08 22:50 
Questionresource leak in this case? Pin
George_George12-Mar-08 14:54
George_George12-Mar-08 14:54 
AnswerRe: resource leak in this case? Pin
Eytukan12-Mar-08 15:35
Eytukan12-Mar-08 15:35 
Yes it gets called automatically. What you've done is a composition and it is Not bad at all, but this is :
Goo* g;

If you are using a raw pointer/heap-allocate inside your "container" class, then it's unsafe. In the sense, you need to manually checks if it's get getting deleted properly.





OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus


Best wishes to Rexx[^]

GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 16:15
George_George12-Mar-08 16:15 
AnswerRe: resource leak in this case? Pin
Rajkumar R12-Mar-08 21:36
Rajkumar R12-Mar-08 21:36 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 21:43
George_George12-Mar-08 21:43 
QuestionRe: resource leak in this case? Pin
Rajkumar R12-Mar-08 21:50
Rajkumar R12-Mar-08 21:50 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 21:53
George_George12-Mar-08 21:53 
AnswerRe: resource leak in this case? Pin
KarstenK12-Mar-08 22:11
mveKarstenK12-Mar-08 22:11 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 22:31
George_George12-Mar-08 22:31 
AnswerRe: resource leak in this case? Pin
Maxwell Chen12-Mar-08 22:15
Maxwell Chen12-Mar-08 22:15 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 22:34
George_George12-Mar-08 22:34 
AnswerRe: resource leak in this case? Pin
Maxwell Chen12-Mar-08 22:39
Maxwell Chen12-Mar-08 22:39 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 22:51
George_George12-Mar-08 22:51 
AnswerRe: resource leak in this case? Pin
Maxwell Chen12-Mar-08 22:54
Maxwell Chen12-Mar-08 22:54 
GeneralRe: resource leak in this case? Pin
George_George12-Mar-08 23:01
George_George12-Mar-08 23:01 
AnswerRe: resource leak in this case? [modified] Pin
Maxwell Chen12-Mar-08 23:11
Maxwell Chen12-Mar-08 23:11 
GeneralRe: resource leak in this case? Pin
George_George13-Mar-08 0:52
George_George13-Mar-08 0:52 
QuestionRe: resource leak in this case? Pin
Maxwell Chen13-Mar-08 8:47
Maxwell Chen13-Mar-08 8:47 
GeneralRe: resource leak in this case? Pin
George_George13-Mar-08 14:55
George_George13-Mar-08 14:55 

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.