Fixed bool conversions for Sun 5.3

[SVN r18419]
This commit is contained in:
Peter Dimov committed 2003-05-16 12:11:17 +00:00
1 parent e760759414
commit bc00d5fa1a
5 files changed
+90

No files matched your search

+17
View File
@@ -119,6 +119,21 @@ public:
return p_;
}
#if BOOST_WORKAROUND(__SUNPRO_CC, <= 0x530)
operator bool () const
{
return p_ != 0;
}
private:
operator int () const;
public:
#else
typedef T * (intrusive_ptr::*unspecified_bool_type) () const;
operator unspecified_bool_type () const
@@ -126,6 +141,8 @@ public:
return p_ == 0? 0: &intrusive_ptr::get;
}
#endif
// operator! is a Borland-specific workaround
bool operator! () const
{