Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-01-30 14:24:00


"Philippe A. Bouchard" <philippeb_at_[hidden]> wrote in message
news:b1a99m$fil$1_at_main.gmane.org...

[...]

> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk