$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Interprocess regexes
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-12-07 05:22:36
Phil Endecott wrote:
> Hi Mike,
>
> Mike Spertus wrote:
>> basic_string and other containers take an allocator template argument,
>> while basic_regex does not.
>>
>> If basic_regex had an allocator it would reap all the same benefits
>> that other string and container types do. In particular, it would be
>> possible to use boost::interprocess to place them in shared memory.
>
> IIUC, while the custom allocators let you put std::containers in shared
> memory they are still not very useful since they can only be used by the
> process that put them there - other processes will (potentially) see the
> shared memory at a different address and all the pointers will be
> wrong. Is this level of functionality useful to you?
I suppose there wouldn't be any problem if the library author used
Allocator::pointer instead of T*.