]> https://gitweb.dealii.org/ - dealii.git/commitdiff
typeid for SmartPointer
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 16 Mar 2005 16:17:50 +0000 (16:17 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 16 Mar 2005 16:17:50 +0000 (16:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@10167 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/matrix_lib.h
deal.II/lac/include/lac/pointer_matrix.h
deal.II/lac/source/matrix_lib.cc

index b0f7676b714ff1ac0e66bf154e3630a4d6181f9b..5e488a1b196c8c8769d239c00a599edc7eabe6db 100644 (file)
@@ -275,7 +275,7 @@ ProductMatrix<VECTOR>::ProductMatrix (
   const MATRIX1& mat1,
   const MATRIX2& mat2,
   VectorMemory<VECTOR>& m)
-  : mem(&m)
+  : mem(&m, typeid(*this).name())
 {
   m1 = new PointerMatrix<MATRIX1, VECTOR>(&mat1);
   m2 = new PointerMatrix<MATRIX2, VECTOR>(&mat2);
index e89d7577eb5ee16ffc7a023ff3ab8cad31f87073..2a27125a471b793ec489792fee443916a822ce6a 100644 (file)
@@ -157,7 +157,7 @@ PointerMatrixBase<VECTOR>::~PointerMatrixBase ()
 template<class MATRIX, class VECTOR>
 PointerMatrix<MATRIX, VECTOR>::PointerMatrix (const MATRIX* M)
   :
-  m(M)
+  m(M, typeid(*this).name())
 {}
 
 template<class MATRIX, class VECTOR>
index 5e16eb1e50c16b92ad8684cc94b784ee79d45547..d0e4856f4c4239725825f0624974a857963a16d9 100644 (file)
@@ -27,8 +27,9 @@ ProductSparseMatrix<number, vnumber>::ProductSparseMatrix(
   const MatrixType& mat2,
   VectorMemory<VectorType>& mem)
                :
-               m1(&mat1), m2(&mat2),
-               mem(&mem)
+               m1(&mat1, typeid(*this).name()),
+               m2(&mat2, typeid(*this).name()),
+               mem(&mem, typeid(*this).name())
 {
   Assert(mat1.n() == mat2.m(), ExcDimensionMismatch(mat1.n(),mat2.m()));
 }

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.