
13 Apr
2011
13 Apr
'11
4:18 a.m.
On 4/12/2011 6:52 PM, Nevin Liber wrote:
On 12 April 2011 20:17, Phil Bouchard<philippe@fornux.com> wrote:
Once again if is_from() was implemented the following way:
bool is_from(const char* p) { return p - buffer> 0&& p - buffer< sizeof(buffer); }
Then the undefined behaviors would seem to go away.
What makes you believe that? Read the section on pointer arithmetic in the C99 standard.
(Unless this comes back to being Boost related, we really ought to move this discussion out of here.)
5.7.6 covers this issue already hahaha. It looks like the data, heap and stack pools in ::process will simply need to be contiguous. -Phil