diff options
author | Like Ma <likemartinma@gmail.com> | 2019-11-13 20:20:47 +0800 |
---|---|---|
committer | Like Ma <likemartinma@gmail.com> | 2019-12-11 10:52:14 +0800 |
commit | 7e7902f9ffa652f78540870170c492a67816b731 (patch) | |
tree | 8ebc57b5d4a8860f4ef39492ab0331af4c0ade3e /ACE/ace/Refcounted_Auto_Ptr.inl | |
parent | 3cb77e292612ea00bfc9b39d2d7103c50fa5e54c (diff) | |
download | ATCD-7e7902f9ffa652f78540870170c492a67816b731.tar.gz |
Use unspecified_bool_type instead of bool.
Diffstat (limited to 'ACE/ace/Refcounted_Auto_Ptr.inl')
-rw-r--r-- | ACE/ace/Refcounted_Auto_Ptr.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/Refcounted_Auto_Ptr.inl b/ACE/ace/Refcounted_Auto_Ptr.inl index f495076b153..30f3b2e1b02 100644 --- a/ACE/ace/Refcounted_Auto_Ptr.inl +++ b/ACE/ace/Refcounted_Auto_Ptr.inl @@ -128,9 +128,9 @@ ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::operator !() const } template<class X, class ACE_LOCK> inline -ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::operator bool () const +ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::operator unspecified_bool_type () const { - return this->rep_->get () != 0; + return this->rep_->get () != 0 ? unspecified_bool : 0; } template <class X, class ACE_LOCK> inline X* |