]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/scoped_array.hpp
Boost 1.31.0
[lyx.git] / boost / boost / scoped_array.hpp
index 1930f2016cd87a448150319887ab735b91581f13..e5919a48eef711b8db7fcf89c4f7946cf4b792ad 100644 (file)
@@ -93,15 +93,23 @@ public:
         return ptr != 0;
     }
 
-#else
-
+#elif defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003))
     typedef T * (this_type::*unspecified_bool_type)() const;
-
+    
     operator unspecified_bool_type() const // never throws
     {
         return ptr == 0? 0: &this_type::get;
     }
 
+#else 
+
+    typedef T * this_type::*unspecified_bool_type;
+
+    operator unspecified_bool_type() const // never throws
+    {
+        return ptr == 0? 0: &this_type::ptr;
+    }
+
 #endif
 
     bool operator! () const // never throws