Modify

Ticket #3665 (closed Patches: fixed)

Opened 4 years ago

Last modified 4 years ago

Bimap and custom allocators

Reported by: gutierrez.gustavo@… Owned by: matias
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

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

Change History

Changed 4 years ago by gutierrez.gustavo@…

Patch for use of custom allocators in bimaps

Changed 4 years ago by gutierrez.gustavo@…

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

comment:1 Changed 4 years ago by matias

  • Status changed from new to assigned

comment:2 Changed 4 years ago by matias

  • Status changed from assigned to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.