Re: [Boost-bugs] [Boost C++ Libraries] #1444: scoped_ptr::operator== should be equivalent to a.get()==b.get(), but is currently !!a==!!b

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1444: scoped_ptr::operator== should be equivalent to a.get()==b.get(), but is currently !!a==!!b
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-02-19 14:00:11


#1444: scoped_ptr::operator== should be equivalent to a.get()==b.get(), but is
currently !!a==!!b
-----------------------------------------------+----------------------------
  Reporter: Geoffrey Irving <irving_at_[hidden]> | Owner: pdimov
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: smart_ptr
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------+----------------------------
Comment (by pdimov):

 I considered adding the obvious operators as suggested, but I can't come
 up with any sensible use case for them, as two scoped pointers are only
 equal when they both store NULL. So I'll just disable the comparisons at
 compile time instead.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1444#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC