Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-20 12:42:56


Partly specialized functions were converted to partly specialized structures
in .../ptr/inherit2.cpp.

My system outputs without segmentation faults or compile-time errors:
Btm typeid=3
Mid<left> typeid=1
Mid<right> typeid=2
Top typeid=0
inherit2_test for ptr
dpB->b=10
dpB->Mid<left>::m=7
dpB->Mid<left>::t=6
dpB->Mid<right>::m=9
dpB->Mid<right>::t=8
going up left branch:
Mid<left>::m=7
:spT->t=6
going up right branch:
Mid<right>::m=9
:spT->t=6

gcc 2.96 was a test candidate for the new gcc 3.0 I think. The generated
code could be discussed.

Philippe A. Bouchard

"Larry Evans" <jcampbell3_at_[hidden]> wrote:
> I think ptr has a problem when the referent inherits indirectly
> from the same class twice.
>
> Please see /*boost/files/ptr_evans/inherit2.*.


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