summaryrefslogtreecommitdiff
path: root/secblock.h
diff options
context:
space:
mode:
Diffstat (limited to 'secblock.h')
-rw-r--r--secblock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/secblock.h b/secblock.h
index 420dc1c..5bb447d 100644
--- a/secblock.h
+++ b/secblock.h
@@ -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;}