www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Why doesn't std.containers support std.experimental.allocator?

reply Menshikov <mensikovk817 gmail.com> writes:
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?
Aug 25 2021
parent reply user1234 <user1234 12.de> writes:
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](https://forum.dlang.org/post/730a99d2-1043-19b7-551a-c6f57 90f422 erdani.org). 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](https://code.dlang.org/packages/emsi_containers), which are based on the allocators.
Aug 25 2021
parent rikki cattermole <rikki cattermole.co.nz> writes:
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.
Aug 25 2021