From: Wolfgang Bangerth Date: Thu, 2 Jun 2005 00:28:31 +0000 (+0000) Subject: Avoid confusing gcc2.95 by a friend declaration of a template without a prior X-Git-Tag: v8.0.0~13744 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27ce2c278317ae258d4fae338e66d67070c2a5e;p=dealii.git Avoid confusing gcc2.95 by a friend declaration of a template without a prior declaration of the template function. This otherwise leads to completely odd error messages. git-svn-id: https://svn.dealii.org/trunk@10812 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/symmetric_tensor.h b/deal.II/base/include/base/symmetric_tensor.h index f8848cc075..1c6c68b317 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -23,6 +23,11 @@ template class SymmetricTensor; template SymmetricTensor<2,dim> unit_symmetric_tensor (); template SymmetricTensor<4,dim> deviator_tensor (); template SymmetricTensor<4,dim> identity_tensor (); +template double trace (const SymmetricTensor<2,dim2> &); + +template SymmetricTensor<2,dim> +deviator (const SymmetricTensor<2,dim> &); + namespace internal {