From: guido Date: Fri, 6 May 2005 23:17:52 +0000 (+0000) Subject: add missing ids when copying pointers X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f93b8efff23041daa723e1fd78003250895cb9d;p=dealii-svn.git add missing ids when copying pointers git-svn-id: https://svn.dealii.org/trunk@10654 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/smartpointer.h b/deal.II/base/include/base/smartpointer.h index f780daf602..ee877835d1 100644 --- a/deal.II/base/include/base/smartpointer.h +++ b/deal.II/base/include/base/smartpointer.h @@ -73,7 +73,7 @@ class SmartPointer * * The id is used in the * call to - * Subscriptor::subscribe(). The #id of + * Subscriptor::subscribe(typeid(*this).name()). The #id of * the object copied is used here. */ SmartPointer (const SmartPointer &tt); @@ -90,7 +90,7 @@ class SmartPointer * * The id is used in the * call to - * Subscriptor::subscribe() and + * Subscriptor::subscribe(typeid(*this).name()) and * by ~SmartPointer() in the call * to Subscriptor::unsubscribe(). */ @@ -331,12 +331,12 @@ inline void SmartPointer::swap (T *&tt) { if (t != 0) - t->unsubscribe (); + t->unsubscribe (id); std::swap (t, tt); if (t != 0) - t->subscribe (); + t->subscribe (id); }