Skip to content
Snippets Groups Projects
Commit 03d05c0d authored by dnsadmin's avatar dnsadmin
Browse files

Ajánlott override-ok hozzáadása

parent 9007d99c
Branches
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class db_exception: public std::exception
std::string msg;
public:
explicit db_exception(const std::string& msg): msg(msg) {}
virtual const char *what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT { return msg.c_str(); }
virtual const char *what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT override { return msg.c_str(); }
};
#endif /* DB_EXCEPTION_H */
......@@ -16,7 +16,7 @@ class dns_exception: public std::exception
std::string msg;
public:
explicit dns_exception(const std::string& msg): msg(msg) {}
virtual const char *what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT { return msg.c_str(); }
virtual const char *what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT override { return msg.c_str(); }
};
#endif /* DNS_EXCEPTION_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment