]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove outdated comment. Of course we have to redeclare the function
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Feb 2000 13:38:51 +0000 (13:38 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Feb 2000 13:38:51 +0000 (13:38 +0000)
since otherwise it would be shadowed by other virtual functions with
the same name.

git-svn-id: https://svn.dealii.org/trunk@2402 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index f2f5ee5452f43d192cf54275e6b0196a2dc4ba3e..e695759f684d69cc7685f23e2676b25deed727fe 100644 (file)
@@ -845,21 +845,15 @@ bool MultipleParameterLoop::read_input (istream &input) {
   AssertThrow (input, ExcIO());
 
   bool x = ParameterHandler::read_input (input);
-  if (x) init_branches ();
+  if (x)
+    init_branches ();
   return x;
 };
 
 
 
-bool MultipleParameterLoop::read_input (const string &filename) {
-                                  // I don't know why it is necessary to
-                                  // declare this function: simply not
-                                  // overloading it in MultipleParameterLoop
-                                  // should suffice, but then the compiler can't
-                                  // find the inherited version and complains that
-                                  // it can't find a function MultipleParameterLoop::
-                                  // read_input (string, ostream) instead of trying the
-                                  // base class (maybe wait for gcc2.8)
+bool MultipleParameterLoop::read_input (const string &filename)
+{
   return ParameterHandler::read_input (filename);
                                   // don't call init_branches, since this read_input
                                   // function calls

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.