From 0684d553daf01b75f4d2e3f110bd9a604de66f20 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 8 Dec 2010 02:59:21 +0000 Subject: [PATCH] Rather than re-implementing things use them from the common header file. git-svn-id: https://svn.dealii.org/trunk@22942 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/serialization/tensor.cc | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/tests/serialization/tensor.cc b/tests/serialization/tensor.cc index 0d3c8e2619..a55773cb84 100644 --- a/tests/serialization/tensor.cc +++ b/tests/serialization/tensor.cc @@ -14,6 +14,7 @@ // check serialization for Tensor<1,dim> #include "../tests.h" +#include "serialization.h" #include #include #include @@ -23,33 +24,6 @@ #include -template -void verify (const T &t1, - T &t2) -{ - // save data to archive - std::ostringstream oss; - { - boost::archive::text_oarchive oa(oss); - oa << t1; - // archive and stream closed when - // destructors are called - } - deallog << oss.str() << std::endl; - - // verify correctness of the - // serialization - { - std::istringstream iss(oss.str()); - boost::archive::text_iarchive ia(iss); - - - ia >> t2; - - Assert (t1 == t2, ExcInternalError()); - } -} - void test () { -- 2.39.5