lame vc6 hack

This commit is contained in:
Glenn Maynard
2005-07-08 12:35:46 +00:00
parent 29a77351c2
commit 4596e1baf1
+6
View File
@@ -143,6 +143,7 @@ public:
m_pPtr = HiddenPtrTraits<T>::Copy( cpy.m_pPtr );
}
#if 0 // broken VC6
template<class U>
HiddenPtr( const HiddenPtr<U> &cpy )
{
@@ -151,6 +152,7 @@ public:
else
m_pPtr = HiddenPtrTraits<U>::Copy( cpy.m_pPtr );
}
#endif
~HiddenPtr()
{
@@ -172,6 +174,7 @@ public:
return *this;
}
#if 0 // broken VC6
template<class U>
HiddenPtr<T> &operator=( const HiddenPtr<U> &cpy )
{
@@ -179,12 +182,15 @@ public:
Swap( t );
return *this;
}
#endif
private:
T *m_pPtr;
#if 0 // broken VC6
template<class U>
friend class HiddenPtr;
#endif
};
template<class T>