|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-22 12:22:40
hierarchy_traits<> could be added to boost/type_traits also.
Philippe A. Bouchard
"Philippe A. Bouchard" <philippeb_at_[hidden]> wrote:
> I've uploaded a rewritten ptr.hpp which handles simple, complex and
> ambiguous hierarchies:
> http://groups.yahoo.com/group/boost/files/ptr/
>
> pointer.cpp outputs:
>
> Q25boostt11mutable_ptr1Z2SX: size = 4
> 16simple_hierarchy: size = 4
> * p = 9
> 17complex_hierarchy: size = 4
> get() = 0x804be20
> get() = 0x804be28
> y = 2
> VD::~VD()
> VY::~VY()
> VX::~VX()
> 19ambiguous_hierarchy: size = 8
> pI1->i = 8
> pI2->i = 9
>
> on my system.
>
>
>
> Philippe A. Bouchard
>
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk