about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libutil/types.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 906a959e3079..58e7c8a39cbb 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -39,8 +39,7 @@ protected:
 public:
     unsigned int status; // exit status
     BaseError(const FormatOrString & fs, unsigned int status = 1);
-    ~BaseError() throw () { };
-    const char * what() const throw () { return err.c_str(); }
+    const char * what() const noexcept { return err.c_str(); }
     const string & msg() const { return err; }
     const string & prefix() const { return prefix_; }
     BaseError & addPrefix(const FormatOrString & fs);