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

Peter Dimov pdimov@mmltd.net
Thu Jun 5 17:45:00 GMT 2008


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



More information about the Libstdc++ mailing list