Boost logo

Boost :

Subject: Re: [boost] [pool] Definition of a static_pool ?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-04-29 05:51:36


On Sat, Apr 28, 2012 at 9:16 PM, Christopher Kormanyos
<e_float_at_[hidden]> wrote:
>>> Because I never figured out a way to *place* an array at
>
>>> the known physical address in memory where I want it,
>>> such as 0xFFE0, or whatever the address of, say, the
>>> ADC result registers may be in the microcontroller.
>
>>> Maybe there is a simpler way to do things like this.
>>> But I never got it. Any advice would be welcome.
>
>> What about placement new?
>> Or an array_ref (not part of Boost).
>> Olaf
>
> Sorry, I was unclear. I meant that I never figured out how to
> put std::array at an address of my choice. Unfortunately,

Wouldn't placement new allow you to do just that?

-- 
Olaf

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk