]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Suggestion by Rostislav Khlebnikov: make a local operator const.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 28 Apr 2009 13:33:51 +0000 (13:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 28 Apr 2009 13:33:51 +0000 (13:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@18763 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/constraint_matrix.templates.h

index ff4f22c0ef5b991fdaffdb0c03cf1a93189eaf49..e5b608499450407c426ef90fe01c0a4a58c88c2c 100644 (file)
@@ -973,7 +973,7 @@ namespace internals
     distributing (const distributing &in);
     ~distributing ();
     distributing & operator = (const distributing &in);
-    bool operator < (const distributing &in);
+    bool operator < (const distributing &in) const;
     unsigned int global_row;
     unsigned int local_row;
     mutable std::vector<std::pair<unsigned int,double> > *constraints;
@@ -1019,7 +1019,7 @@ namespace internals
   }
 
   inline
-  bool distributing::operator < (const distributing &in)
+  bool distributing::operator < (const distributing &in) const
   {
     return global_row < in.global_row;
   }

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.