This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [c++0x] shared_ptr get() and use_count() inconsistency


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]