Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: constructor for POD types? Pin
Michael Dunn12-Mar-08 19:20
sitebuilderMichael Dunn12-Mar-08 19:20 
GeneralRe: constructor for POD types? Pin
George_George12-Mar-08 19:35
George_George12-Mar-08 19:35 
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 
Thanks Mike,


I find this stuff.

http://www.codeguru.com/forum/showthread.php?p=1695187&postcount=9[^]

Seems this statement "otherwise, the object is zero-initialized" in post #9 covers this topic. Any comments?

But do you think,

T t = T(); and T t; are the same? I think the standard only covers the 1st case, for T t it is undefined value?


regards,
George
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 
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 

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.