I implemented reference counting pointers (called SP in开发者_运维百科 the example) and I\'m having problems with polymorphism which I think I shouldn\'t have.
Is there any problem with keeping member variable pointer refernces to COM objects and reussing the reference through out the class in C++.
In this insightful article, one of the Qt programmers tries to explain the different kinds of smart pointers Qt implements. In the beginning, he makes a distinction between sharing data and sharing th
I have a std::list of boost::shared_ptr<T> and I want to remove an item from it but I only have a pointer of type T* which matches one of the items in the list.
I read here about std::auto_ptr<>::operator= Notice however that the left-hand side object is not automatically
I am getting a compile error, saying that the copy constructor of the scoped_ptr is private with the following code snippet:
I have a set of shared pointers: std::set<boost::shared_ptr<T>> set; And a pointer: T* p; I would like to efficiently remove the element of set equal to p, but I can\'t do this w开发
I\'m investigating smart pointers w开发者_StackOverflowith \"shared\" functionality for Windows CE and Mobile, where the VS 2008 tr1 std::shared_ptr cannot be used (due to linkage to a v.9 dll not pre
I was browsing for an alternative to using so many shared_ptrs, and found an excellent reply in a comment section:
What are best practices to include boost smart pointer library only without adding开发者_高级运维 all boost libraries into the project?