Re: [Boost-bugs] [Boost C++ Libraries] #2554: shared_ptr initialized with NULL returns use_count() == 1

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2554: shared_ptr initialized with NULL returns use_count() == 1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-19 14:55:05


#2554: shared_ptr initialized with NULL returns use_count() == 1
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: Boost 1.38.0 | Component: smart_ptr
   Version: Boost 1.37.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------

Comment(by fmhess):

 This isn't a bug. You've created a "null" shared_ptr, which is different
 from an "empty" shared_ptr. Only an "empty" shared_ptr has a use_count of
 zero.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2554#comment:2>
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:59 UTC