]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Revert order of args in std::distance.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Sep 2001 09:27:51 +0000 (09:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Sep 2001 09:27:51 +0000 (09:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@5035 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-11/step-11.cc

index b2343e34c872585e3be8072f66f9298ca3059551..9fb341197ea3bae4d1290dd328e83782877e79f8 100644 (file)
@@ -185,10 +185,10 @@ void LaplaceProblem<dim>::setup_system ()
                                   // element in the array to get its
                                   // index:
   const unsigned int first_boundary_dof
-    = std::distance (std::find (boundary_dofs.begin(),
+    = std::distance (boundary_dofs.begin(),
+                    std::find (boundary_dofs.begin(),
                                boundary_dofs.end(),
-                               true),
-                    boundary_dofs.begin());
+                               true));
 
                                   // Then generate a constraints
                                   // object with just this one

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.