|
Boost Users : |
Subject: Re: [Boost-users] Problem with enable_shared_from_this and shared_ptr
From: Ganeshram Iyer (ganeshramiyer_at_[hidden])
Date: 2010-07-21 14:22:16
Aaah, OK. Thank you so much Ovanes. For some odd reason I thought the change
would be in 'class pool'. Your sample code really helped alleviate my
misconception.
Thank you
Ganesh
On Wed, Jul 21, 2010 at 12:42 PM, Ovanes Markarian
<om_boost_at_[hidden]>wrote:
> Ganesh,
>
> I think he did this:
>
> int main(int argc, char * argv[]) {
> try {
> boost::shared_ptr<pool> myPool(new pool); //changed line
>
> boost::shared_ptr<int> a = myPool->get();
> }
> catch (std::exception & exception) {
> std::cout << exception.what() << std::endl;
> }
>
> return 0;
>
> }
>
>
> Regards,
> Ovanes
>
>
>
> On Wed, Jul 21, 2010 at 4:47 PM, Ganeshram Iyer <ganeshramiyer_at_[hidden]>wrote:
>
>> Ryan,
>> 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 advance
>> Ganesh
>>
>
> [...]
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Ganeshram Iyer Open Source and CAD: http://ossandcad.blogspot.com ganeshramiyer_at_[hidden]
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