If I derive my own Exception class from std::runtime_er ror, do I have
to write the destructor even if its body is empty?
#include <stdexcept>
class Exception : public std::runtime_er ror
{
public:
explicit Exception(const std::string &description ) :
std::runtime_er ror(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_er ror
{
public:
explicit Exception(const std::string &description ) :
std::runtime_er ror(description ) { }
virtual ~Exception() throw() { } // Do I need to write this?
};
Comment