Use throw() when noexcept is not supported
This commit is contained in:
1 parent
950e6b9753
commit
e2583ab5f3
7 files changed
+46
-39
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ OutputRedirect::OutputRedirect(FILE *file) : file_(file) {
|
||||
write_end.dup2(fd);
|
||||
}
|
||||
|
||||
OutputRedirect::~OutputRedirect() FMT_NOEXCEPT(true) {
|
||||
OutputRedirect::~OutputRedirect() FMT_NOEXCEPT {
|
||||
try {
|
||||
restore();
|
||||
} catch (const std::exception &e) {
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ class OutputRedirect {
|
||||
|
||||
public:
|
||||
explicit OutputRedirect(FILE *file);
|
||||
~OutputRedirect() FMT_NOEXCEPT(true);
|
||||
~OutputRedirect() FMT_NOEXCEPT;
|
||||
|
||||
// Restores the original file, reads output from the pipe into a string
|
||||
// and returns it.
|
||||
|
||||
Reference in new issue
Block a user