search for: shivahm

Displaying 2 results from an estimated 2 matches for "shivahm".

Did you mean: shivam
2012 Jun 19
2
[LLVMdev] [LLVMDev] Object in a try-catch block not being destroyed even after an exception
...MS-Visual Studio compiler, which gives a result similar to gcc. As per my understanding of the C++ standard, the object has to be destroyed as soon as the exception is thrown. Please let me know which is the correct behavior and suggest me the changes required. Thanks & Regards, Shivaprasad shivahms at gmail.com /******************************************************************Source Code Start*******************************************************************/ extern "C" void abort (); int thrown; int as; struct a { a () { ++as; } ~a () { --as; if (thrown++ == 0) throw 42;...
2012 Jun 19
0
[LLVMdev] [LLVMDev] Object in a try-catch block not being destroyed even after an exception
...ng, so scroll down]. > As per my understanding of the C++ standard, the object has to be > destroyed as soon as the exception is thrown. > Please let me know which is the correct behavior and suggest me the > changes required. > > > Thanks & Regards, > Shivaprasad > shivahms at gmail.com <mailto:shivahms at gmail.com> > > /******************************************************************Source > Code > Start*******************************************************************/ > extern "C" void abort (); > > int thrown; > >...