From 1f7b5101f8f8582b976d79d32e12f18b27393226 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 21 Feb 2018 22:42:01 -0700 Subject: [PATCH] Inline a message text instead of going through contortions. --- examples/step-32/step-32.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/step-32/step-32.cc b/examples/step-32/step-32.cc index 782bff6766..68afe56909 100644 --- a/examples/step-32/step-32.cc +++ b/examples/step-32/step-32.cc @@ -75,7 +75,6 @@ #include #include -#include #include #include #include @@ -1040,18 +1039,13 @@ namespace Step32 { parameter_file.close (); - std::ostringstream message; - message << "Input parameter file <" - << parameter_filename << "> not found. Creating a" - << std::endl - << "template file of the same name." - << std::endl; - std::ofstream parameter_out (parameter_filename.c_str()); prm.print_parameters (parameter_out, ParameterHandler::Text); - AssertThrow (false, ExcMessage (message.str().c_str())); + AssertThrow (false, ExcMessage ("Input parameter file <" + + parameter_filename + +"> not found. Creating a template file of the same name.")); } prm.parse_input (parameter_file); -- 2.39.5