Use noexcept and override. v0.17.1
authorCarl Hetherington <cth@carlh.net>
Tue, 11 May 2021 22:21:21 +0000 (00:21 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 11 May 2021 22:21:21 +0000 (00:21 +0200)
src/cxml.h

index 330cbb0aed9072f33d5927dfc0acbe021fa54598..fbdd22fcb47befc097d6052d360352b51a7e57b8 100644 (file)
@@ -55,7 +55,7 @@ public:
        /** @return error message.  Caller must not free the returned
         *  value.
         */
-       char const * what () const throw () {
+       char const * what () const noexcept override {
                return _message.c_str ();
        }