]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make things work with objects that aren't copyable.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Jun 2011 20:31:28 +0000 (20:31 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Jun 2011 20:31:28 +0000 (20:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@23816 0785d39b-7218-0410-832d-ea1e28bc413d

tests/serialization/serialization.h

index fd4ac60754b038c090bdccdfb9e9bf53d4c81446..7eb91029afb3d2bd070feee53881b69fc9519923 100644 (file)
@@ -25,8 +25,8 @@
 // compare objects for equality and pointers for equality of the object
 // pointed to
 template <typename T>
-bool compare (t1,
-             t2)
+bool compare (const T &t1,
+             const T &t2)
 {
   return t1 == t2;
 }

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.