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.
This commit is contained in:
parent
d16e3c7f09
commit
84a13dc576
3 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue