I am deriving an exception class from Qtconcurrent::Exception, and am receiving a compilation error
looser throw specifier for 'virtual SException::~SException()'
overriding 'virtual QtConcurrent::Exception::~Exception() throw()'
The class is as follows
Qt Code:
  1. class SException : public QtConcurrent::Exception
  2. {
  3. public:
  4. SException(const QString& message) : message_(message) {}
  5. void raise() const { throw *this; }
  6. Exception *clone() const { return new SException(*this); }
  7. QString message() const { return message_; }
  8.  
  9. private:
  10. QString message_;
  11. };
To copy to clipboard, switch view to plain text mode 
How do you specify the destructor correctly? I have already tried specifying a virtual destructor in the derived class but still get the same error.