Thread overview
Why doesn't std.containers support std.experimental.allocator?
Aug 25, 2021
Menshikov
Aug 26, 2021
user1234
Aug 26, 2021
rikki cattermole
August 25, 2021
I have no ideas, it seems to me it could have been solved a long time ago without breaking change. But what are the reasons why this does not happen?
August 26, 2021

On Wednesday, 25 August 2021 at 21:04:37 UTC, Menshikov wrote:

>

I have no ideas, it seems to me it could have been solved a long time ago without breaking change. But what are the reasons why this does not happen?

  • std.containers existed before the allocators
  • std.experimental.allocator
    • is in a "freezed" state. it was asked not to use
      anymore
    • is experimental, so you cannot make non-experimental part
      of the library depends on it

Alternatively you can use emsi containers, which are based on the allocators.

August 26, 2021
On 26/08/2021 12:21 PM, user1234 wrote:
> Alternatively you can use [emsi containers](https://code.dlang.org/packages/emsi_containers), which are based on the allocators.

Right now it is not passing its test suite.

Amin Yahyaabadi has recently been very good with the help of WebFreak and replaced the testsuite from Travis to Github Actions.

However it is failing due to needing to update stdx-allocator and a bug with the unrolled linked list.