A
amphetaman
If I derive my own Exception class from std::runtime_error, do I have
to write the destructor even if its body is empty?
#include <stdexcept>
class Exception : public std::runtime_error
{
public:
explicit Exception(const std::string &description) :
std::runtime_error(description) { }
virtual ~Exception() throw() { } // Do I need to write this?
};
to write the destructor even if its body is empty?
#include <stdexcept>
class Exception : public std::runtime_error
{
public:
explicit Exception(const std::string &description) :
std::runtime_error(description) { }
virtual ~Exception() throw() { } // Do I need to write this?
};