Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with enable_shared_from_this and shared_ptr
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2010-07-21 13:42:41


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 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