Re: [Boost-users] compiling error after upgrading from boost 1.33.1 to boost 1.36.0
16 Aug
2013
16 Aug
'13
3:21 a.m.
Hi Igor, I'm using "new" to allocate the object. My code looks like, In hpp file, typedef Std::map<Std::string, int> MyMap; class MyClass { ........... private boost::shared_ptr< MyMap > m_myMap; } In cpp file MyClass::MyClass() { m_ myMap.reset(new MyMap); } MyClass::~MyClass() { m_ myMap.reset(); } Best regards, Hua
4053
Age (days ago)
4053
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henson Huang