Especificador de lanzamiento más suelto en C ++
¿Qué significa este error? ¿Cómo puedo arreglarlo? Este es el código de encabezado que lo está causando:
class BadJumbleException : public exception {
public:
BadJumbleException (const string& msg); // Constructor, accepts a string as the message
string& what(); // Returns the message string
private:
string message; // Stores the exception message
};
Y este es el código fuente:
BadJumbleException::BadJumbleException (const string& m) : message(m) {}
string& BadJumbleException::what() { return message; }
EDITAR: Este es el error:
especificador de lanzamiento más flexible para 'virtual BadJumbleException :: ~ BadJumbleException ()