
12 Apr
2011
12 Apr
'11
4:53 p.m.
On 4/12/2011 8:04 AM, Dave Abrahams wrote:
I think you are severely missing the point: it is not implementable, no matter the cost in complexity, without causing undefined behavior. You're just not allowed to compare arbitrary pointers with<, and the total ordering produce by std::less isn't guaranteed to be meaningful.
Thanks for the clarifications but if the stack and data segments were part of a pool then 'false' returned by is_from() would then be a valid according to the definition of is_from(). -Phil