fix compile with Borland C++Builder 2007
parent
b240c52bd9
commit
1e3458766a
|
|
@ -296,7 +296,10 @@ public:
|
||||||
~SecBlock()
|
~SecBlock()
|
||||||
{m_alloc.deallocate(m_ptr, m_size);}
|
{m_alloc.deallocate(m_ptr, m_size);}
|
||||||
|
|
||||||
#ifndef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
|
operator T *() const
|
||||||
|
{return (T*)m_ptr;}
|
||||||
|
#else
|
||||||
operator const void *() const
|
operator const void *() const
|
||||||
{return m_ptr;}
|
{return m_ptr;}
|
||||||
operator void *()
|
operator void *()
|
||||||
|
|
@ -304,9 +307,9 @@ public:
|
||||||
|
|
||||||
operator const T *() const
|
operator const T *() const
|
||||||
{return m_ptr;}
|
{return m_ptr;}
|
||||||
#endif
|
|
||||||
operator T *()
|
operator T *()
|
||||||
{return m_ptr;}
|
{return m_ptr;}
|
||||||
|
#endif
|
||||||
|
|
||||||
// T *operator +(size_type offset)
|
// T *operator +(size_type offset)
|
||||||
// {return m_ptr+offset;}
|
// {return m_ptr+offset;}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue