]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Try to avoid using something gcc 4.1.2 doesn't appear to understand.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 14:37:45 +0000 (14:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 14:37:45 +0000 (14:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@27960 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/numerics/matrix_tools.cc

index ac21e24c72c3cd29ae39f7a335bd30b0ec8ad987..0e5bb4d784e6b79417009a005cab9645435cf23c 100644 (file)
@@ -2066,11 +2066,14 @@ namespace MatrixTools
                 // find the position of
                 // element
                 // (row,dof_number)
+                bool (*comp)(const typename SparseMatrix<number>::iterator::value_type &p,
+                             const unsigned int column)
+                = &column_less_than<typename SparseMatrix<number>::iterator>;
                 const typename SparseMatrix<number>::iterator
                 p = Utilities::lower_bound(matrix.begin(row)++,
                                            matrix.end(row),
                                            dof_number,
-                                           &column_less_than<typename SparseMatrix<number>::iterator>);
+                                           comp);
 
                 // check whether this line has
                 // an entry in the regarding column

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.