Opened 5 years ago

Closed 5 years ago

#8553 closed Feature Requests (fixed)

Provide swap() for scoped_allocator_adaptor

Reported by: Markus Mathes <Markus.Mathes@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:


Currently scoped_allocator_adapters can only be swapped if the underlying allocators are assignable and copy constructible. Some allocators (e.g. boost interprocess) are not assignable but swap aware. Providing a swap implementation calling the underlying allocators swap implementations would remove this restriction.

Attachments (1)

scoped_allocator.patch (3.4 KB) - added by Markus Mathes <Markus.Mathes@…> 5 years ago.
Patch to add swap support to scoped_allocator.hpp

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by Markus Mathes <Markus.Mathes@…>

Attachment: scoped_allocator.patch added

Patch to add swap support to scoped_allocator.hpp

comment:1 Changed 5 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

(In [84359]) Fixes #8553

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
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.