id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7100,unorderd_set > > - insert does not increment count,Rich Eakin ,Daniel James,"It seems unordered_set::insert has stopped working for shared_ptr's between v 1.48 and now. Consider the following example: {{{ #include #define USING_BOOST 1 #if USING_LIBCPP #include #include #elif USING_BOOST #include ""boost/shared_ptr.hpp"" #include ""boost/unordered_set.hpp"" using namespace boost; #endif using namespace std; int main() { unordered_set > mySet; shared_ptr intSP( new int( 1 ) ); cout << ""use_count A: "" << intSP.use_count() << endl; mySet.insert( intSP ); cout << ""use_count B: "" << intSP.use_count() << endl; return 0; } }}} In boost-trunk (and release version 1.50), use_count after the insert is still 1. In boost version 1.48, the use_count is incremented by the insert to 2. This is also the case with libc++. Sorry, I don't know what the results are in 1.49. This was tested clang on Mac OS X: {{{ $ clang --version Apple clang version 4.0 (tags/Apple/clang-421.10.48) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.4.0 Thread model: posix }}}",Bugs,closed,Boost 1.51.0,unordered,Boost 1.50.0,Problem,fixed,unordered_set shared_ptr,