Click here to Skip to main content
15,891,473 members

Comments by hakz.code (Top 59 by date)

hakz.code 9-Aug-13 2:04am View    
by toggle() I mean "Display or hide the matched elements".
hakz.code 7-Feb-12 22:56pm View    
Deleted
Yeah,I didn't notice that at end.My mistake :),but why would performance be hurt for that?
hakz.code 6-Feb-12 23:11pm View    
Deleted
Reason for my vote of 3
If we set the Struct Member Alignment to 1 byte with the first declaration the size is 26.
hakz.code 28-Sep-11 5:09am View    
I didnt get your point !
hakz.code 28-Sep-11 3:00am View    
Hi ,thanks for the suggestion,I have gone through this link - http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.8 before asking the question. As suggested there - "Constructors don't have a return type, so it's not possible to use return codes. The best way to signal constructor failure is therefore to throw an exception",I did the above coding.My doubt was - If the memory allocation in constructor fails then I want the caller module of the library to know that, or I need to know that - so that I dont continue using the bad memory which may result in crash.So I thought to handle these crashes.As constructor doesnt return a value,I wanted in some way to know that the allocation is not successful.How can I handle these things without the help of exception handlers(try,catch,throw - since it is c++ library),and if the caller module doesnt catch them it would be a runtime error right?