
12 Apr
2011
12 Apr
'11
10:34 p.m.
On 4/12/2011 3:01 PM, Nevin Liber wrote:
I'm not saying that it won't accidentally work, but once you have undefined behavior, the compiler is free to do anything it wants.
And once you are talking about pages of memory, you are (IMHO) outside of the realm of what can be standardized within the language, since you are now OS and/or hardware specific.
It's a simple alignment of a memory block issue and this is already covered by the standards as far as I know.
I'd still like to see a small example showing the usefulness of such a feature.
You can see an example of is_from() usage here: http://www.fornux.com/personal/philippe/devel/shifted_ptr/boost/shifted_ptr.... -Phil