Open thegreathir opened 5 years ago
You are right that the TBB containers do not use the allocator's pointer type. Changing that could be complicated, as pointers might be modified with atomic operations, reinterpreted as pointers of different type or as integers, etc. There are no plans to make such changes, though if someone sends us a patch we will look at it.
@thegreathir is this issue still relevant? Have you tried to use concurrent_hash_map
with latest version of TBB (oneTBB)?
I'm trying to allocate concurrent_hash_map on Shared Memory using Boost shared memory allocator
but I got following error:
I think the problem is you are not using Allocator::pointer (an offset_ptr when using Boost allocator).
Can anyone help me?