Opened 13 years ago
Closed 13 years ago
#3665 closed Patches (fixed)
Bimap and custom allocators
Reported by: | 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)
Change History (4)
by , 13 years ago
Attachment: | bimap-allocator.patch added |
---|
by , 13 years ago
Attachment: | bimap-allocator.2.patch added |
---|
fixed patch, now it works for the iterator based constructor.
comment:1 by , 13 years ago
Status: | new → assigned |
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Patch for use of custom allocators in bimaps