From: Wolfgang Bangerth Date: Mon, 13 Jun 2011 20:31:28 +0000 (+0000) Subject: Make things work with objects that aren't copyable. X-Git-Tag: v8.0.0~3949 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6836c7fd0b811ad9cec06d06a81968b6f49b2777;p=dealii.git Make things work with objects that aren't copyable. git-svn-id: https://svn.dealii.org/trunk@23816 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/serialization/serialization.h b/tests/serialization/serialization.h index fd4ac60754..7eb91029af 100644 --- a/tests/serialization/serialization.h +++ b/tests/serialization/serialization.h @@ -25,8 +25,8 @@ // compare objects for equality and pointers for equality of the object // pointed to template -bool compare (T t1, - T t2) +bool compare (const T &t1, + const T &t2) { return t1 == t2; }