Boost logo

Boost Users :

Subject: Re: [Boost-users] Request for an addition in Boost Coding standard
From: Daniel James (dnljms_at_[hidden])
Date: 2011-06-17 05:49:34

On 17 June 2011 05:14, Gokulakannan Somasundaram <gokul007_at_[hidden]> wrote:
> All it takes to implement the allocator support in most cases
> is a typedef.

That isn't true. Correctly supporting allocators is more difficult
than normal memory management since they can use custom pointers and
C++03 allocators were poorly specified. C++11 is a lot better in this
regard, but support isn't wide spread enough.

Supporting allocators also makes your templates more complicated,
resulting in worse error message, longer compile times and an
increased testing burden. It also reduces the code that you can
separately compile, since things that weren't templates have to become
templates in order to support allocators.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at