]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make comparator const 6141/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 2 Apr 2018 11:57:26 +0000 (13:57 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 2 Apr 2018 11:57:51 +0000 (13:57 +0200)
include/deal.II/numerics/vector_tools.templates.h

index bcc6399baef717f696d44a6b6e0a9e8c5ef8ae1b..cab72cbc41bf96a2602646b74dfb39b101f1c20b 100644 (file)
@@ -6625,7 +6625,7 @@ namespace VectorTools
     struct PointComparator
     {
       bool operator ()(const std::array<types::global_dof_index,dim> &p1,
-                       const std::array<types::global_dof_index,dim> &p2)
+                       const std::array<types::global_dof_index,dim> &p2) const
       {
         for (unsigned int d=0; d<dim; ++d)
           if (p1[d] < p2[d])

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.