diff options
author | Fotios Sioutis <sfotis@gmail.com> | 2011-12-05 13:53:04 +0200 |
---|---|---|
committer | Fotios Sioutis <sfotis@gmail.com> | 2011-12-05 13:53:04 +0200 |
commit | e467f9956b2dbd3e2e3322ec545543b53b7a0796 (patch) | |
tree | 49460ed3a2a33d5e48e27b953483aaed1bbd01b3 /inc | |
parent | 3cc233db336df4b57051f25dcf0db27e51f009df (diff) | |
download | oce-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-x | inc/Standard_StdAllocator.hxx | 5 |
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>.
|