diff --git a/bad_alloc.cc b/bad_alloc.cc --- a/bad_alloc.cc +++ b/bad_alloc.cc @@ -32,8 +32,7 @@ for (;;) { v.push_back (i++); } - } - catch (exception & e) { + } catch (exception & e) { cout << e.what () << " after " << i << " iterations" << endl << endl; cout << "Would you like to see the full error message? (y/n) "; cin >> action;