1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

Revert "Drop support for pre-c++11 compilers."

The breakage this fixed can be worked around without removing support.

This reverts commit 84a13dc576.
This commit is contained in:
Shea Levy 2014-10-20 11:33:48 -04:00
parent ecc2c8f464
commit f040159f77
3 changed files with 9 additions and 2 deletions

View file

@ -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);