¡@

Home 

c++ Programming Glossary: enable_shared_from_this

Code::Blocks and Boost Asio. It just wont work [closed]

http://stackoverflow.com/questions/11497160/codeblocks-and-boost-asio-it-just-wont-work

boost array.hpp #include boost bind.hpp #include boost enable_shared_from_this.hpp #include boost noncopyable.hpp #include boost shared_ptr.hpp.. Handler a h class session public boost enable_shared_from_this session public session boost asio io_service io_service socket_..

Getting a boost::shared_ptr for this

http://stackoverflow.com/questions/142391/getting-a-boostshared-ptr-for-this

boost share improve this question You can derive from enable_shared_from_this and then you can use shared_from_this instead of this to spawn.. your own self object. Example in the link #include boost enable_shared_from_this.hpp class Y public boost enable_shared_from_this Y public shared_ptr.. boost enable_shared_from_this.hpp class Y public boost enable_shared_from_this Y public shared_ptr Y f return shared_from_this int main shared_ptr..

smart pointers + “this” considered harmful?

http://stackoverflow.com/questions/382166/smart-pointers-this-considered-harmful

i don't have a general answer or some idiom there is boost enable_shared_from_this . It allows you to get a shared_ptr managing an object that..

enable_shared_from_this (c++0x): what am I doing wrong?

http://stackoverflow.com/questions/4428023/enable-shared-from-this-c0x-what-am-i-doing-wrong

c 0x what am I doing wrong I'm just toying around with the.. #include memory class CVerboseBornAndDie2 public std enable_shared_from_this CVerboseBornAndDie2 public std string m_Name CVerboseBornAndDie2..

Using SSL sockets and non-SSL sockets simultaneously in Boost.Asio?

http://stackoverflow.com/questions/4720120/using-ssl-sockets-and-non-ssl-sockets-simultaneously-in-boost-asio

class with two sockets like this class client public boost enable_shared_from_this client public client boost asio io_service io_service boost..

BOOST ASIO - How to write console server

http://stackoverflow.com/questions/5210796/boost-asio-how-to-write-console-server

boost asio.hpp #include boost bind.hpp #include boost enable_shared_from_this.hpp #include boost shared_ptr.hpp #include iostream using namespace.. using namespace boost asio class Input public boost enable_shared_from_this Input public typedef boost shared_ptr Input Ptr public static..

questions regarding shared_from_this

http://stackoverflow.com/questions/5232712/questions-regarding-shared-from-this

which is bad. Then I remembered that there this class enable_shared_from_this with the function shared_from_this . So now I am going to use.. now I am going to use the following class MyClass public enable_shared_from_this MyClass void MyClass memfun func shared_from_this Questions.. impossible to use the functionality without deriving from enable_shared_from_this 2 Does deriving from enable_shared_from_this mean that calling..

What are potential dangers when using boost::shared_ptr?

http://stackoverflow.com/questions/701456/what-are-potential-dangers-when-using-boostshared-ptr

what I am talking about in the comments. class node public enable_shared_from_this node public void set_parent shared_ptr node parent parent_ parent.. tree from the code this memory leaks. class node public enable_shared_from_this node public void set_parent shared_ptr node parent parent_ parent..

what is the usefulness of enable_shared_from_this

http://stackoverflow.com/questions/712279/what-is-the-usefulness-of-enable-shared-from-this

is the usefulness of enable_shared_from_this I ran across enable_shared_from_this while reading the Boost.Asio.. is the usefulness of enable_shared_from_this I ran across enable_shared_from_this while reading the Boost.Asio examples and after reading the.. as a member. This example from the boost documentation for enable_shared_from_this class Y public enable_shared_from_this Y public shared_ptr Y..

When to use shared_ptr and when to use raw pointers?

http://stackoverflow.com/questions/7657718/when-to-use-shared-ptr-and-when-to-use-raw-pointers

is no exception you must do this eg. when you use std enable_shared_from_this . You very rarely need std weak_ptr except when you want to..