]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make clear that 'throw' is not a function. 11312/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Dec 2020 21:31:15 +0000 (14:31 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Dec 2020 21:31:15 +0000 (14:31 -0700)
include/deal.II/fe/fe_tools.templates.h

index 801323d736ef103aaf62db95dfd51a12b7b664a1..53cfaa1f0c7944c47090e4263976a888f3dc7b75 100644 (file)
@@ -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')
               {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.