[Boost-bugs] [Boost C++ Libraries] #1590: shared_ptr documentation inconsistency

Subject: [Boost-bugs] [Boost C++ Libraries] #1590: shared_ptr documentation inconsistency
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-22 13:44:37


#1590: shared_ptr documentation inconsistency
-------------------------------------+--------------------------------------
 Reporter: fmhess | Owner: pdimov
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: smart_ptr
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 The default shared_ptr constructor, which creates an empty shared_ptr,
 gives "use_count() == 0" as a post condition. However, the documentation
 for
 use_count says it returns "an unspecified nonnegative value when *this is
 empty". I'd like it to return 0 for an empty shared_ptr, as that appears
 to
 be the only way to distinguish an empty shared_ptr from one sharing
 ownership
 of a null pointer.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1590>
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