mark override 2 virtual methods.

This commit is contained in:
jean-pierre charras 2017-03-18 09:39:56 +01:00
parent b535303a0a
commit 713d475df6
1 changed files with 10 additions and 10 deletions

View File

@ -28,20 +28,20 @@ namespace SEXPR
{
public:
PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
const char* what() const noexcept { return msg.c_str(); }
const char* what() const noexcept override { return msg.c_str(); }
virtual ~PARSE_EXCEPTION() noexcept {}
private:
std::string msg;
};
class INVALID_TYPE_EXCEPTION : public std::exception
{
public:
INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
const char* what() const noexcept { return msg.c_str(); }
virtual ~INVALID_TYPE_EXCEPTION() noexcept {}
private:
std::string msg;
};
class INVALID_TYPE_EXCEPTION : public std::exception
{
public:
INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
const char* what() const noexcept override { return msg.c_str(); }
virtual ~INVALID_TYPE_EXCEPTION() noexcept {}
private:
std::string msg;
};
}
#endif