diff options
author | Shea Levy <shea@shealevy.com> | 2014-10-20T15·33-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-10-20T15·33-0400 |
commit | f040159f77e518e5eda87a0c092e6c20d87a572b (patch) | |
tree | c67e106354350859ebe39fcac92357cab619ea6f /src/libutil/types.hh | |
parent | ecc2c8f46452c5041dca34bcfd24bbd863d1d46e (diff) |
Revert "Drop support for pre-c++11 compilers."
The breakage this fixed can be worked around without removing support. This reverts commit 84a13dc576496f1227665259c61f86184f452f51.
Diffstat (limited to 'src/libutil/types.hh')
-rw-r--r-- | src/libutil/types.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh index 58e7c8a39cbb..906a959e3079 100644 --- a/src/libutil/types.hh +++ b/src/libutil/types.hh @@ -39,7 +39,8 @@ protected: public: unsigned int status; // exit status BaseError(const FormatOrString & fs, unsigned int status = 1); - const char * what() const noexcept { return err.c_str(); } + ~BaseError() throw () { }; + const char * what() const throw () { return err.c_str(); } const string & msg() const { return err; } const string & prefix() const { return prefix_; } BaseError & addPrefix(const FormatOrString & fs); |