Modify

Ticket #8553 (closed Feature Requests: fixed)

Opened 12 months ago

Last modified 11 months ago

Provide swap() for scoped_allocator_adaptor

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

Description

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

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

Change History

Changed 12 months ago by Markus Mathes <Markus.Mathes@…>

Patch to add swap support to scoped_allocator.hpp

comment:1 Changed 11 months ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

(In [84359]) Fixes #8553

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.