fix compile with Borland C++Builder 2007

pull/2/head
weidai 2007-08-16 22:59:53 +00:00
parent b240c52bd9
commit 1e3458766a
1 changed files with 5 additions and 2 deletions

View File

@ -296,7 +296,10 @@ public:
~SecBlock()
{m_alloc.deallocate(m_ptr, m_size);}
#ifndef __BORLANDC__
#ifdef __BORLANDC__
operator T *() const
{return (T*)m_ptr;}
#else
operator const void *() const
{return m_ptr;}
operator void *()
@ -304,9 +307,9 @@ public:
operator const T *() const
{return m_ptr;}
#endif
operator T *()
{return m_ptr;}
#endif
// T *operator +(size_type offset)
// {return m_ptr+offset;}