Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2003-07-27 12:05:07


Support Requests item #778516, was opened at 2003-07-27 10:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=778516&group_id=7586

Category: smart_ptr
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Peter Dimov (pdimov)
Summary: Can you use boost::pool with a smart_ptr

Initial Comment:
Hi,

The program I am writing will create and delete a lot
of objects.
These objects will be referenced from multiple places.

Obviously, I need a shared_ptr, however, I am worried
about the performance during creation and deletion

Can you use a boost::pool interface with the shared_ptr?

I have tried using the pool, object_pool,
singleton_pool interfaces but I can't get the
constructor to run on my object.

If I use the pool_alloc interface I have to use a
container.

Basically, I want to allocate objects from a memory
pool and have these object pointed to by
smart/shared_ptr so that when all of the references to
the object are gone the object is deleted.

Can anyone help me?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=778516&group_id=7586

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk