From 6281fa4befc8525f45362c60edfe913c9de2eeb0 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Wed, 7 Oct 2009 00:28:23 +0000 Subject: [PATCH] Changed functions in ownership policies from public to protected. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1028 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/SmartPtr.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/include/loki/SmartPtr.h b/include/loki/SmartPtr.h index 8a9f7ef..dead947 100644 --- a/include/loki/SmartPtr.h +++ b/include/loki/SmartPtr.h @@ -70,7 +70,7 @@ namespace Loki template class HeapStorage { - public: + protected: typedef T* StoredType; /// the type of the pointee_ object typedef T* InitPointerType; /// type used to declare OwnershipPolicy type. typedef T* PointerType; /// type returned by operator-> @@ -152,7 +152,7 @@ namespace Loki template class DefaultSPStorage { - public: + protected: typedef T* StoredType; // the type of the pointee_ object typedef T* InitPointerType; /// type used to declare OwnershipPolicy type. typedef T* PointerType; // type returned by operator-> @@ -359,7 +359,7 @@ namespace Loki template class ArrayStorage { - public: + protected: typedef T* StoredType; // the type of the pointee_ object typedef T* InitPointerType; /// type used to declare OwnershipPolicy type. typedef T* PointerType; // type returned by operator-> @@ -435,7 +435,7 @@ namespace Loki template class RefCounted { - public: + protected: RefCounted() : pCount_(static_cast( SmallObject<>::operator new(sizeof(uintptr_t)))) @@ -511,7 +511,7 @@ namespace Loki typedef typename base_type::IntType CountType; typedef volatile CountType *CountPtrType; - public: + protected: RefCountedMT() { pCount_ = static_cast( @@ -574,7 +574,7 @@ namespace Loki template class COMRefCounted { - public: + protected: COMRefCounted() {} @@ -614,6 +614,7 @@ namespace Loki template struct DeepCopy { + protected: DeepCopy() {} @@ -673,7 +674,7 @@ namespace Loki template class RefLinked : public Private::RefLinkedBase { - public: + protected: RefLinked() {} @@ -706,7 +707,7 @@ namespace Loki template class DestructiveCopy { - public: + protected: DestructiveCopy() {} @@ -742,7 +743,7 @@ namespace Loki template class NoCopy { - public: + protected: NoCopy() {}