Boost logo

Boost :

Subject: Re: [boost] [pool] Definition of a static_pool ?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-04-28 09:39:38


On Sat, Apr 28, 2012 at 2:48 PM, Christopher Kormanyos
<e_float_at_[hidden]> wrote:
>> I assume this vector can't be resized. Why use a vector instead of for
>> example an array or ptr pair?
>> Olaf
>
> 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

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