From 3473cc68f59911cb6659634fdc577f882c8128de Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 15 Sep 2016 17:06:24 +0300 Subject: Add io_error alias for std::ios_base::failure --- build2/b.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index 8031559..d16a406 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -9,7 +9,7 @@ #include #include // strcmp(), strchr() #include -#include +#include // cout #include @@ -195,8 +195,8 @@ main (int argc, char* argv[]) // return p.wait () ? 0 : 1; } - // Catch ios_base::failure as std::system_error together with the - // pager-specific exceptions. + // Catch io_error as std::system_error together with the pager-specific + // exceptions. // catch (const system_error& e) { @@ -273,7 +273,7 @@ main (int argc, char* argv[]) parser p; bspec = p.parse_buildspec (is, path ("")); } - catch (const istringstream::failure&) + catch (const io_error&) { fail << "unable to parse buildspec '" << args << "'"; } -- cgit v1.1