
13 Apr
2011
13 Apr
'11
12:43 a.m.
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