about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-10-19T02·44-0400
committerShea Levy <shea@shealevy.com>2014-10-19T02·44-0400
commit84a13dc576496f1227665259c61f86184f452f51 (patch)
treedb099d777b08c5c7f8fd0e203741d5c7c92e44ab /src/libutil
parentd16e3c7f091b0ecc4975368575c71d69ce7a9bc7 (diff)
Drop support for pre-c++11 compilers.
In particular, gcc 4.6's std::exception::~exception has an exception
specification in c++0x mode, which requires us to use that deprecated
feature in nix (and led to breakage after some recent changes that were
valid c++11).

nix already uses several c++11 features and gcc 4.7 has been around for
over 2 years.
Diffstat (limited to 'src/libutil')
-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);