From: bangerth Date: Sun, 26 Jan 2014 23:58:30 +0000 (+0000) Subject: Provide a couple of constructors that are never called but for which X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605dc2695a8a70e9d1224ccbe75513a3070d5f28;p=dealii-svn.git Provide a couple of constructors that are never called but for which we apparently need definitions when running the testsuite for coverage. git-svn-id: https://svn.dealii.org/trunk@32321 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/symmetric_tensor.h b/deal.II/include/deal.II/base/symmetric_tensor.h index 93ffc6296a..66814824fe 100644 --- a/deal.II/include/deal.II/base/symmetric_tensor.h +++ b/deal.II/include/deal.II/base/symmetric_tensor.h @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2005 - 2013 by the deal.II authors +// Copyright (C) 2005 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -1061,6 +1061,17 @@ namespace internal { namespace SymmetricTensorAccessors { + template + Accessor:: + Accessor () + : + tensor (*static_cast(0)), + previous_indices () + { + Assert (false, ExcMessage ("You can't call the default constructor of this class.")); + } + + template Accessor:: Accessor (tensor_type &tensor, @@ -1071,6 +1082,15 @@ namespace internal {} + template + Accessor:: + Accessor (const Accessor &a) + : + tensor (a.tensor), + previous_indices (a.previous_indices) + {} + + template Accessor @@ -1082,6 +1102,18 @@ namespace internal + template + Accessor:: + Accessor () + : + tensor (*static_cast(0)), + previous_indices () + { + Assert (false, ExcMessage ("You can't call the default constructor of this class.")); + } + + + template Accessor:: Accessor (tensor_type &tensor, @@ -1093,6 +1125,16 @@ namespace internal + template + Accessor:: + Accessor (const Accessor &a) + : + tensor (a.tensor), + previous_indices (a.previous_indices) + {} + + + template typename Accessor::reference Accessor::operator[] (const unsigned int i)