|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-02-11 22:13:18
I would like to propose the following helper that returns the address of
some polymorphic object's leftmost parent. Useful when you want to find the
starting address of an allocated block given any other derived parent:
http://groups.yahoo.com/group/boost/files/shifted_ptr/pick_of.hpp
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