shared-ptr
shared_ptr and the this-pointer
OK, I started using shared-pointers and pass shared-pointers as much as possible.No conversion to raw pointers anymore.This works good, except in this specific case:[详细]
2023-02-07 21:24 分类:问答Proper Implementation in the midst of no RValue implicit conversion
I ran into the problem that RValue does not allow implicit conversion. My questions is what implementation is better to \"bypass\" this limitation?[详细]
2023-02-07 02:35 分类:问答convert shared_ptr to auto_ptr?
I need to obtain auto_ptr from shared_ptr in my code. I can do reverse operation - convert auto_ptr to shared_ptr as shared_ptr has such constructor:[详细]
2023-02-06 19:17 分类:问答Boost::shared_ptr instantiated using this
Consider the following case: typedef boost::shared_ptr<B> B开发者_开发知识库Ptr; class A {[详细]
2023-02-06 06:29 分类:问答shared_ptr causing segfault
I am trying to use shared_ptr with my class but for some reason I get segfault. Maybe I am doing something stupid.[详细]
2023-02-06 05:53 分类:问答Preventing classes from being instantiated on the stack or as data member
I\'m starting to use shared pointers in C++ (Visual Studio 2010) and run into the following problem. I am writing a new module which defines an interface that tells the module how to behave in certai[详细]
2023-02-05 06:18 分类:问答Garbage collection vs. shared pointers
What are the differences between shared pointers (such as boost::shared_ptr or the new std::shared_ptr) and garbage collection methods (such as those implemented in Java or C#)? The way I understand i[详细]
2023-02-03 13:21 分类:问答how boost::~shared_ptr works?
when reading \"Beyond the C++ Standard Library: An Introduction to Boost \" ,I got a very interesting example:[详细]
2023-02-02 05:47 分类:问答Anyone know of any plans to make ^ a shorthand for shared_ptr<T>?
For example: shared_ptr<const shared_ptr<const int> > pp; is fairly intimidating... wh开发者_运维问答ereas[详细]
2023-02-01 19:00 分类:问答Ways to make it easier to work with shared pointers in C++
I am busy designing a new C++ application. 开发者_开发知识库 In this application I want to minimize potential errors with pointers, and since the application should be plain C++ (no .Net or other fanc[详细]
2023-02-01 02:09 分类:问答