Boost logo

Boost :

From: Jon Kalb (jonkalb_at_[hidden])
Date: 2003-02-11 23:15:31


On 2003-02-11 7:13 PM, "Philippe A. Bouchard" <philippeb_at_[hidden]>
wrote:

> 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

If a user attempts to use this on a non-polymorphic object, will they get a
compile time error or run-time error?

Jon Kalb
jonkalb_at_[hidden]
 


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