summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/ProxyHandle.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/ProxyHandle.h')
-rw-r--r--cpp/include/Ice/ProxyHandle.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h
index f611d01fe57..cad5a557459 100644
--- a/cpp/include/Ice/ProxyHandle.h
+++ b/cpp/include/Ice/ProxyHandle.h
@@ -107,6 +107,17 @@ template<typename T>
class ProxyHandle : public ::IceUtil::HandleBase<T>
{
public:
+
+#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600)
+ //
+ // C++Builder 2009 does not allow setting Prx to 0.
+ //
+ ProxyHandle(int p)
+ {
+ assert(p == 0);
+ this->_ptr = 0;
+ }
+#endif
ProxyHandle(T* p = 0)
{