|
Boost : |
Subject: Re: [boost] [Boost.Pool] TR1?
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-04-12 20:43:11
On 4/12/2011 4:06 PM, Phil Bouchard wrote:
>
> Is that so? I guess it'll be different if you have:
>
> struct Silly
> {
> bool is_from_heap(const char* p)
> { return heap<= p&& p< heap + sizeof(heap); }
>
> char data[1024];
> char heap[1024];
> char stack[1024];
> };
... and "p" is guaranteed to be part of either the data, heap or stack
buffer.
-Phil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk