]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/scopedptr.h
Significantly improved wxPropertyGrid's top-level parent change detection code (fixes...
[wxWidgets.git] / include / wx / scopedptr.h
index a27b8dbd6b703c8093197d4200518ba5ff7a9fc7..515c7fc383f1f648cc6a0288314440132af862af 100644 (file)
@@ -47,7 +47,13 @@ public:
 
     // test for pointer validity: defining conversion to unspecified_bool_type
     // and not more obvious bool to avoid implicit conversions to integer types
+#ifdef __BORLANDC__
+    // this compiler is too dumb to use unspecified_bool_type operator in tests
+    // of the form "if ( !ptr )"
+    typedef bool unspecified_bool_type;
+#else
     typedef T *(wxScopedPtr<T>::*unspecified_bool_type)() const;
+#endif // __BORLANDC__
     operator unspecified_bool_type() const
     {
         return m_ptr ? &wxScopedPtr<T>::get : NULL;