From 702a40b0fbe55a27658ddc385df79bf45c83799e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 Dec 2020 14:31:15 -0700 Subject: [PATCH] Make clear that 'throw' is not a function. --- include/deal.II/fe/fe_tools.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/fe/fe_tools.templates.h b/include/deal.II/fe/fe_tools.templates.h index 801323d736..53cfaa1f0c 100644 --- a/include/deal.II/fe/fe_tools.templates.h +++ b/include/deal.II/fe/fe_tools.templates.h @@ -2470,7 +2470,7 @@ namespace FETools // Now, just the [...] // part should be left. if (name.size() == 0 || name[0] != '[') - throw(std::string("Invalid first character in ") + name); + throw std::string("Invalid first character in ") + name; do { // Erase the @@ -2524,7 +2524,7 @@ namespace FETools // we actually had a ']' // there if (name.size() == 0 || name[0] != ']') - throw(std::string("Invalid first character in ") + name); + throw std::string("Invalid first character in ") + name; name.erase(0, 1); // just one more sanity check Assert((base_fes.size() == base_multiplicities.size()) && @@ -2572,7 +2572,7 @@ namespace FETools // or (Quadrature<1>(degree+1)) // part should be left. if (name.size() == 0 || name[0] != '(') - throw(std::string("Invalid first character in ") + name); + throw std::string("Invalid first character in ") + name; name.erase(0, 1); if (name[0] != 'Q') { -- 2.39.5