[boost] Re: Re: Re: Re: Proven ptr<>
by Philippe A. Bouchard other posts by this author
Aug 12 2002 9:49PM messages near this date
Re: [boost] Re: Re: Proven ptr<>
|
[boost] Re: Re: Re: Re: Proven ptr<>
> > You mean a container of function pointers (s_rectify) (?)?
>
> I haven't been paying enough attention to your implementation details to
> know whether a container is appropriate or neccessary, nor what s_rectify
> is.
s_rectify will contain needed static_cast<> s type T can have in the program:
class A { int; };
class B { int; };
class P { int; };
class X : A, P { int; };
class Y : A, P { int; };
class Z : A, B, P { int; };
ptr<P> = new (rc()) X;
ptr<P> = new (rc()) Y;
ptr<P> = new (rc()) Z;
ptr<P> ::s_id = 0;
ptr<X> ::s_id = 1;
ptr<Y> ::s_id = 2;
ptr<Z> ::s_id = 3;
ptr<P> ::s_rectify = {u, 4, 4, 8};
ptr<P> ::s_rectify[0] = int(static_cast<P *>((P *) 1) - offset(1)); // Not
defined yet
ptr<P> ::s_rectify[1] = int(static_cast<P *>((X *) 1) - offset(1));
ptr<P> ::s_rectify[2] = int(static_cast<P *>((Y *) 1) - offset(1));
ptr<P> ::s_rectify[3] = int(static_cast<P *>((Z *) 1) - offset(1));
Philippe A. Bouchard
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Peter Dimov
Philippe A. Bouchard
David B. Held
David Abrahams
Philippe A. Bouchard
Philippe A. Bouchard
Greg Colvin
David B. Held
Philippe A. Bouchard
David Abrahams
David Abrahams
Philippe A. Bouchard
David Abrahams
Philippe A. Bouchard
Philippe A. Bouchard
Philippe A. Bouchard
Greg Colvin
Philippe A. Bouchard
Greg Colvin
Greg Colvin
|