Thanks for ideas. The insert without copy is intentional.
When do you use shared_ptr<> and when shared_array<>.
what does these signify?
boost::shared_ptr<int> smrtptr (new int[256]);
and...
Type: Posts; User: gopu
Thanks for ideas. The insert without copy is intentional.
When do you use shared_ptr<> and when shared_array<>.
what does these signify?
boost::shared_ptr<int> smrtptr (new int[256]);
and...
Hi,
I want to used shared_ptr here instead of raw pointers. How can the following code be changed to use shared_ptr or shared_array?
#define MAX_COLS 1000
MyClass