This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [c++0x] shared_ptr get() and use_count() inconsistency
- From: "Peter Dimov" <pdimov at mmltd dot net>
- To: <libstdc++ at gcc dot gnu dot org>, "Rodolfo Lima" <rodolfo at rodsoft dot org>
- Date: Thu, 5 Jun 2008 20:44:59 +0300
- Subject: Re: [c++0x] shared_ptr get() and use_count() inconsistency
- References: <g27qri$prd$1@ger.gmane.org>
Rodolfo Lima:
The current standard draft says that use_count() should return 0 if the
shared_ptr is empty, and get() should return NULL if the shared_ptr is
also empty.
http://www.open-std.org/JTC1/SC22/WG21/docs/lwg-active.html#711