summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorFotios Sioutis <sfotis@gmail.com>2011-12-05 13:53:04 +0200
committerFotios Sioutis <sfotis@gmail.com>2011-12-05 13:53:04 +0200
commite467f9956b2dbd3e2e3322ec545543b53b7a0796 (patch)
tree49460ed3a2a33d5e48e27b953483aaed1bbd01b3 /inc
parent3cc233db336df4b57051f25dcf0db27e51f009df (diff)
downloadoce-e467f9956b2dbd3e2e3322ec545543b53b7a0796.tar.gz
oce-e467f9956b2dbd3e2e3322ec545543b53b7a0796.zip
Fixed Standard_StdAllocator for bcc32
When a template parameter of type class is used, implicit call to its destructor requires usage of the class name and not of its typedef.
Diffstat (limited to 'inc')
-rwxr-xr-xinc/Standard_StdAllocator.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/Standard_StdAllocator.hxx b/inc/Standard_StdAllocator.hxx
index df4d0270..9a20bc85 100755
--- a/inc/Standard_StdAllocator.hxx
+++ b/inc/Standard_StdAllocator.hxx
@@ -86,7 +86,12 @@ public:
//! Destroys the object.
/*! Uses object destructor.*/
+ /* Destructor name must match the class name for __BORLANDC__.*/
+#ifdef __BORLANDC__
+ void destroy( pointer p ) { p->~T(); }
+#else
void destroy( pointer p ) { p->~value_type(); }
+#endif
};
//! Implements specialization Standard_StdAllocator<void>.