Remember that an exception in the destructor is dangerous

This issue was found in LibreOffice project. The error is detected by the following diagnostic: V509 The ‘dynamic_cast<T&>’ operator should be located inside the try..catch block, as it could potentially generate an exception. Raising exception inside the destructor is illegal. Continue reading