Subject: [Boost-bugs] [Boost C++ Libraries] #7205: boost1.50 unorder_map not affect shared_ptr object reference count on mac 10.8
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-08 01:59:44
#7205: boost1.50 unorder_map not affect shared_ptr object reference count on mac
10.8
------------------------------------------+---------------------------------
Reporter: wen max <wen.max8@â¦> | Owner: danieljames
Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
Version: Boost 1.50.0 | Severity: Showstopper
Keywords: |
------------------------------------------+---------------------------------
here is the test code:
#include <iostream>
using namespace std;
#include <boost/smart_ptr.hpp>
#include <boost/unordered_map.hpp>
typedef unsigned long long ulonglong;
class test {
int a;
public:
test(int i)
: a(i) {}
~test() {}
};
int main(int argc, const char * argv[]) {
boost::unordered_map<ulonglong, boost::shared_ptr<test> > tt;
boost::shared_ptr<test> e(new test(3));
tt.insert(make_pair(1314, e));
return 0;
}
I'm developing program under mac 10.8 with Xcode 4.4 . When using
unordered_map with upper codes, boost150 will not add reference count of
var e, but boost 149 works fine.
When doing this test, I switch the include header folder of
/usr/local/include/boost betweet boost150 and boost 149.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7205> 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:50:10 UTC