"Philippe A. Bouchard" <[EMAIL PROTECTED]> wrote in message
b1a99m$fil$[EMAIL PROTECTED]">news:b1a99m$fil$[EMAIL PROTECTED]...

[...]

> shifted_ptr only works with "shifted objects" allocated with placement
> operator new (size_t, shifted_type const &).  In theory it would be
possible
> to displace operator delete (void *) to handle properly addresses not
> pointing to the beginning of a block (hack); to implement this directly in
a
> compiler; etc.

I guess it would also be possible to allocate a "shifted object" into some
specific memory page, so operator delete will be able to quickly detect
weither the object is shifted or not.  This way it would be possible to
overload the main operator new.



Philippe A. Bouchard




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to