-
boost smart pointers
Well this is my first time using boost and I have a question
Using this example:
Code:
class TEST
{
//...blah
};
boost::shared_ptr<TEST> CTestnew TEST);
A) Is this the right way to use it?
B) Do I have to do a delete like old pointers or does the smart pointer do it for you?
-
-
Except that you forgot an opening parenthesis, it's ok.
And you don't need to delete it, that's the point in using smart pointers.
-
Damn typo ;)
Interesting stuff in that lib
-
I love the boost library, there is just soo much stuff in it!
Is there any books or maybe an online resource that goes voer EVERYTHING contained in the library?
-
Damn, I had a beautiful piece of code using std::mem_fun, std::bind1st, std::copy, std::ostream_iterator and boost::make_transform_iterator to output the results of calling a member function on every class instance stored in a vector...
But I deleted it.