shared-ptr
how to use postThreadMessage to pass a struct
I want to use windows\'s message queue facilities to 开发者_开发技巧send a struct to another thread.[详细]
2023-03-29 16:57 分类:问答What is the sense of a shared_ptr to a container?
What actu开发者_StackOverflow中文版ally is the point of declaring a boost::shared_ptr to a container like std::vector or std::list?[详细]
2023-03-28 08:32 分类:问答What does "single allocation" mean for boost::make_shared
In the boost doc of make_shared, it says: Besides convenience and style, 开发者_高级运维such a function is also exception safe and considerably[详细]
2023-03-27 23:14 分类:问答C++ delete pointer with valid address
I am using Poco C++ library and cause strange problem. Poco using own shared pointer class SharedPtr for internal pointer operations. At my case static object Poco::SSLManager has SharedPtr members of[详细]
2023-03-26 22:38 分类:问答C++ how to pass a boost shared pointer of this instance of class to nested class object?
So we have (pseudo code): class A { A(sh开发者_JS百科ared_ptr parent){} } class B { A *a; B() { a = new A(boost::shared_ptr(this));[详细]
2023-03-26 15:36 分类:问答Problem understanding shared_ptr
I have a: template<class K,class V> struct Node { node_ptr parent_;//node_ptr is a shared_ptr<Node<K,V>>[详细]
2023-03-26 00:11 分类:问答boost::make_shared<T>(...) does not compile, shared_ptr<T>(new T(...)) does
I am getting compilation error with g++4.6 and boost 1.42 when using boost::make_shared<T>(...), whereas shared_ptr<T>(new T(...)) compiles just fine. I am unfortunately not able to isolat[详细]
2023-03-24 11:49 分类:问答Differences between unique_ptr and shared_ptr [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicates: pimpl: shared_ptr or unique_ptr[详细]
2023-03-24 01:23 分类:问答Using shared_ptr
When I\'m using raw pointers it is pretty easy to \'travers\' up/down the tree, but when I\'ve employed shared_ptr instead of built-in pointers it isn\'t so. I m开发者_StackOverflow社区ean I just can\[详细]
2023-03-23 23:20 分类:问答boost::lambda expression fails to compile because of instantiation of abstract template arg. Any explanation and/or work arounds?
I\'m in the process of learning boost::lambda and I\'ve managed to create a situation that I can\'t resolve with what I know so far.[详细]
2023-03-23 18:13 分类:问答