P
Pradeep
Hi,
I am using intrusive pointers for my code but i am not much aquianted
with them. I am using an example to illustrate my problem as i can't
share the code.
I have two clases ( say A and B)
B is derived from A( B: public A)
now i want to pass the this* pointer of the derived class(B) to a
method of an object that takes intrusive pointer of the base class(A)
as argument.
method definition
pass(intrusive_ptr<A>)
and i am passingt the this pointer of class B.
I have tried using dynamic_cast as well as dynamic_pointer_cast but i
still get the error.
Thanks in Advance.
Pradeep
I am using intrusive pointers for my code but i am not much aquianted
with them. I am using an example to illustrate my problem as i can't
share the code.
I have two clases ( say A and B)
B is derived from A( B: public A)
now i want to pass the this* pointer of the derived class(B) to a
method of an object that takes intrusive pointer of the base class(A)
as argument.
method definition
pass(intrusive_ptr<A>)
and i am passingt the this pointer of class B.
I have tried using dynamic_cast as well as dynamic_pointer_cast but i
still get the error.
Thanks in Advance.
Pradeep