From 6a871fad44c1bc737622c4725559e224d586537d Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sat, 17 Dec 2005 13:15:30 +0000 Subject: [PATCH] make object level locking possible git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@382 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/SmartPtr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/loki/SmartPtr.h b/include/loki/SmartPtr.h index 70f8bdd..44766b3 100644 --- a/include/loki/SmartPtr.h +++ b/include/loki/SmartPtr.h @@ -178,7 +178,7 @@ namespace Loki RefCountedMT() { pCount_ = static_cast( - SmallObject::operator new( + SmallObject::operator new( sizeof(*pCount_))); assert(pCount_); //*pCount_ = 1; @@ -205,7 +205,7 @@ namespace Loki { if (!ThreadingModel::AtomicDecrement(*pCount_)) { - SmallObject::operator delete( + SmallObject::operator delete( const_cast(pCount_), sizeof(*pCount_)); return true;