Modify

Opened 8 years ago

Closed 8 years ago

#3665 closed Patches (fixed)

Bimap and custom allocators

Reported by: gutierrez.gustavo@… Owned by: Matias Capeletto
Milestone: Boost 1.42.0 Component: bimap
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc: matias.capeletto@…

Description

In the current implementation of bimap there is no way to specify a custom allocator. It is documented as a feature but not implemented. Custom allocators were considered in the design of bimap (they are considered as a template parameter) but not implemented. The attached patch solves the problem by modifying two constructors of bimap class and adding an allocator as an optional parameter. The patch is against the svn boost sources.

Hope this helps.

Gustavo

Attachments (2)

bimap-allocator.patch (1.6 KB) - added by gutierrez.gustavo@… 8 years ago.
Patch for use of custom allocators in bimaps
bimap-allocator.2.patch (1.6 KB) - added by gutierrez.gustavo@… 8 years ago.
fixed patch, now it works for the iterator based constructor.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by gutierrez.gustavo@…

Attachment: bimap-allocator.patch added

Patch for use of custom allocators in bimaps

Changed 8 years ago by gutierrez.gustavo@…

Attachment: bimap-allocator.2.patch added

fixed patch, now it works for the iterator based constructor.

comment:1 Changed 8 years ago by Matias Capeletto

Status: newassigned

comment:2 Changed 8 years ago by Matias Capeletto

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matias Capeletto.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.