From ad53b9f2de42ef9c0fa7185f44742ef33cf558ac Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 10 Jan 2015 20:07:25 +1100 Subject: [PATCH] options: catch execption by reference --- options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.cpp b/options.cpp index f45113b8..d23b97f5 100644 --- a/options.cpp +++ b/options.cpp @@ -275,7 +275,7 @@ bytesoption::execute (const std::string& data) { specified = type_from_character (data[cursor]); // If the character is a digit, it just means the user skipped the // size specifier, which is ok. - } catch (domain_error x) { + } catch (domain_error &x) { if (!isdigit (data[cursor])) throw invalid_argument ("Not a size");