From d1fc406b39040cb2b64fe54e580b07db3763158f Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 16 Mar 2005 16:17:50 +0000 Subject: [PATCH] typeid for SmartPointer git-svn-id: https://svn.dealii.org/trunk@10167 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/matrix_lib.h | 2 +- deal.II/lac/include/lac/pointer_matrix.h | 2 +- deal.II/lac/source/matrix_lib.cc | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deal.II/lac/include/lac/matrix_lib.h b/deal.II/lac/include/lac/matrix_lib.h index b0f7676b71..5e488a1b19 100644 --- a/deal.II/lac/include/lac/matrix_lib.h +++ b/deal.II/lac/include/lac/matrix_lib.h @@ -275,7 +275,7 @@ ProductMatrix::ProductMatrix ( const MATRIX1& mat1, const MATRIX2& mat2, VectorMemory& m) - : mem(&m) + : mem(&m, typeid(*this).name()) { m1 = new PointerMatrix(&mat1); m2 = new PointerMatrix(&mat2); diff --git a/deal.II/lac/include/lac/pointer_matrix.h b/deal.II/lac/include/lac/pointer_matrix.h index e89d7577eb..2a27125a47 100644 --- a/deal.II/lac/include/lac/pointer_matrix.h +++ b/deal.II/lac/include/lac/pointer_matrix.h @@ -157,7 +157,7 @@ PointerMatrixBase::~PointerMatrixBase () template PointerMatrix::PointerMatrix (const MATRIX* M) : - m(M) + m(M, typeid(*this).name()) {} template diff --git a/deal.II/lac/source/matrix_lib.cc b/deal.II/lac/source/matrix_lib.cc index 5e16eb1e50..d0e4856f4c 100644 --- a/deal.II/lac/source/matrix_lib.cc +++ b/deal.II/lac/source/matrix_lib.cc @@ -27,8 +27,9 @@ ProductSparseMatrix::ProductSparseMatrix( const MatrixType& mat2, VectorMemory& 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())); } -- 2.39.5