|
Boost Users : |
Subject: Re: [Boost-users] Problem with enable_shared_from_this and shared_ptr
From: Ryan McConnehey (mccorywork_at_[hidden])
Date: 2010-08-06 03:40:56
Ryan,Sorry for the delay in answering your question. I missed it in my inbox. Anyway I've included what I changed in the code. I didn't see any point in giving the user a choice in how pool was created when one of the option gives an error. So, I added a static methods that creates a pool in a shared_ptr and hid the constructor. This forced the user to get the pool inside a shared_ptr and removed the possibility of an error when calling the get method.Is there any chance you can post what you added to your provided example to fix the problem you were having? I would love to see what that example looks like when it is working.Thanks in advanceGanesh
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net