]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid confusing gcc2.95 by a friend declaration of a template without a prior
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Jun 2005 00:28:31 +0000 (00:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Jun 2005 00:28:31 +0000 (00:28 +0000)
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

deal.II/base/include/base/symmetric_tensor.h

index f8848cc07532e592f7962bbd59e4ac12b7a2c56b..1c6c68b317fb5ba4f085e7fb71290aa21d07bd45 100644 (file)
@@ -23,6 +23,11 @@ template <int rank, int dim> class SymmetricTensor;
 template <int dim> SymmetricTensor<2,dim> unit_symmetric_tensor ();
 template <int dim> SymmetricTensor<4,dim> deviator_tensor ();
 template <int dim> SymmetricTensor<4,dim> identity_tensor ();
+template <int dim2> double trace (const SymmetricTensor<2,dim2> &);
+
+template <int dim> SymmetricTensor<2,dim>
+deviator (const SymmetricTensor<2,dim> &);
+
 
 namespace internal
 {

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.