From d091ee85c01c60db7f69c13181d4272a84ceb269 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 23 May 2003 13:46:07 +0000 Subject: [PATCH] Turns out Sun CC doesn't like operator int(). [SVN r18512] --- include/boost/intrusive_ptr.hpp | 6 ------ include/boost/scoped_array.hpp | 6 ------ include/boost/scoped_ptr.hpp | 6 ------ include/boost/shared_array.hpp | 6 ------ include/boost/shared_ptr.hpp | 6 ------ 5 files changed, 30 deletions(-) diff --git a/include/boost/intrusive_ptr.hpp b/include/boost/intrusive_ptr.hpp index 57e8c87..6135bb6 100644 --- a/include/boost/intrusive_ptr.hpp +++ b/include/boost/intrusive_ptr.hpp @@ -126,12 +126,6 @@ public: return p_ != 0; } -private: - - operator int () const; - -public: - #else typedef T * (intrusive_ptr::*unspecified_bool_type) () const; diff --git a/include/boost/scoped_array.hpp b/include/boost/scoped_array.hpp index fd770bc..6d33a56 100644 --- a/include/boost/scoped_array.hpp +++ b/include/boost/scoped_array.hpp @@ -93,12 +93,6 @@ public: return ptr != 0; } -private: - - operator int () const; - -public: - #else typedef T * (this_type::*unspecified_bool_type)() const; diff --git a/include/boost/scoped_ptr.hpp b/include/boost/scoped_ptr.hpp index 5c07ebd..464822b 100644 --- a/include/boost/scoped_ptr.hpp +++ b/include/boost/scoped_ptr.hpp @@ -110,12 +110,6 @@ public: return ptr != 0; } -private: - - operator int () const; - -public: - #else typedef T * (this_type::*unspecified_bool_type)() const; diff --git a/include/boost/shared_array.hpp b/include/boost/shared_array.hpp index 68420a2..5ee8ff7 100644 --- a/include/boost/shared_array.hpp +++ b/include/boost/shared_array.hpp @@ -102,12 +102,6 @@ public: return px != 0; } -private: - - operator int () const; - -public: - #else typedef T * (this_type::*unspecified_bool_type)() const; diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 0040fb4..8cb6d1e 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -253,12 +253,6 @@ public: return px != 0; } -private: - - operator int () const; - -public: - #else typedef T * (this_type::*unspecified_bool_type)() const;