$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [pool] Definition of a static_pool ?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-04-29 11:34:59
On Sun, Apr 29, 2012 at 2:44 PM, John Maddock <boost.regex_at_[hidden]> wrote:
>> Wouldn't placement new allow you to do just that?
>
>
> That's what I thought to, assuming say you have 8 32-bit ints at address
> "myhardware", then something like:
>
> typedef std::array<volatile std::int32_t, 8> array_type;
>
> array_type* pa = new(myhardware) array_type;
>
> assert(&(*pa[0]) == myhardware);
boost::iterator_range might work too, but unfortunately it doesn't
provide operator[] and data().
-- Olaf