From: Wolfgang Bangerth Date: Thu, 3 Dec 2020 21:31:15 +0000 (-0700) Subject: Make clear that 'throw' is not a function. X-Git-Tag: v9.3.0-rc1~804^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11312%2Fhead;p=dealii.git Make clear that 'throw' is not a function. --- 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') {