]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make loop more conforming (thanks to Dima Sorkin)
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 11 Dec 2005 16:47:40 +0000 (16:47 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 11 Dec 2005 16:47:40 +0000 (16:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@11855 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index d6732bfe1dc6a3a43c4379a993bfba6c5532b440..bddc17e1e28f925a36605525b2245281951db63b 100644 (file)
@@ -1486,10 +1486,10 @@ void MultipleParameterLoop::init_branches ()
                                   // has only one single value after reading the
                                   // input
   if (multiple_choices.size() > 0)
-    for (std::vector<Entry>::iterator i=multiple_choices.end()-1;
-        i >= multiple_choices.begin(); --i)
+    for (std::vector<Entry>::reverse_iterator i=multiple_choices.rbegin();
+        i != multiple_choices.rend(); ++i)
       if (i->different_values.size() == 1)
-       multiple_choices.erase (i);
+       multiple_choices.erase (i.base());
 
                                   // finally calculate number of branches
   n_branches = 1;

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.