C++11: override keyword

Source : http://en.cppreference.com/w/cpp/language/override
This commit is contained in:
Gaurav
2015-09-04 14:04:43 +05:30
committed by Christopher Dunn
parent 3ee15b7bcc
commit aadd0b1b63
6 changed files with 15 additions and 15 deletions

View File

@@ -40,8 +40,8 @@ namespace Json {
class JSON_API Exception : public std::exception {
public:
Exception(std::string const& msg);
virtual ~Exception() throw();
virtual char const* what() const throw();
~Exception() throw() override;
char const* what() const throw() override;
protected:
std::string const msg_;
};