[container] Forward declarations for scoped allocator traits

Hi Ion, I was just looking at the scoped allocator support. A container currently needs to include all of scoped_allocator.hpp just to customize the appropriate traits which seems a bit much. Could you declare (not define) constructible_with_allocator_suffix and constructible_with_allocator_prefix in a separate header so that they can be specialised without including all the other things? I've also attached a patch that fixes a couple of typos that I noticed. Daniel

On 8 July 2012 13:59, Daniel James <dnljms@gmail.com> wrote:
Hi Ion,
I was just looking at the scoped allocator support. A container currently needs to include all of scoped_allocator.hpp just to customize the appropriate traits which seems a bit much. Could you declare (not define) constructible_with_allocator_suffix and constructible_with_allocator_prefix in a separate header so that they can be specialised without including all the other things?
Oh, and it should probably also define allocator_arg_t.

El 08/07/2012 15:01, Daniel James escribió:
On 8 July 2012 13:59, Daniel James <dnljms@gmail.com> wrote:
Hi Ion,
I was just looking at the scoped allocator support. A container currently needs to include all of scoped_allocator.hpp just to customize the appropriate traits which seems a bit much. Could you declare (not define) constructible_with_allocator_suffix and constructible_with_allocator_prefix in a separate header so that they can be specialised without including all the other things?
Oh, and it should probably also define allocator_arg_t.
This seems a good idea, can you please fill a ticket so that I don't miss this? Thanks, Ion
participants (2)
-
Daniel James
-
Ion Gaztañaga