Re:C++ For C Programmers
by eliasmacpherson on Monday October 14, 2013 @08:19AM
(#6546766)
correct me if I am wrong but you can't rethrow in a destructor and hence RAII is required if you are using exceptions - because the cleanup and reporting work must be done in the destructor - unless you use global state to track failures and check after every attempted release of a resource i.e. C error checking.
[ Parent
| on HN ]
There are no comments on this comment yet.