Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-08-20 13:38:40


Philippe A. Bouchard wrote:

>Partly specialized functions were converted to partly specialized structures
>in .../ptr/inherit2.cpp.
>
I'm sorry, I don't see how this matters.

>
>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
>
The right branch should return "spT->t=8" to mirror
what's returned by the output line:

  dpB->Mid<right>::t=8

The value stored in ptr_base<Top,...>::s_ptrdiff[3],
corresponding to ptr_base<Btm,...>::s_id, is 0, when
it should be 8 for the right side.


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