|
Boost Users : |
Subject: Re: [Boost-users] compiling error after upgrading from boost 1.33.1 to boost 1.36.0
From: Henson Huang (henson_huang_at_[hidden])
Date: 2013-08-15 23:21:43
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net