Getting the implementation object from a reference

Ole Storm storm@ifad.dk
Wed, 04 Mar 1998 13:34:00 +0100


Greetings,

Having a reference to a CORBA object, I would like to get the associated
implementation object. I am aware that I can use dynamic casting:

   Interface_i *p = dynamic_cast<Interface_i*>(i_ptr);
   if(p)
     // ok to use p...

- but what do I do with compilers that do not support run-time type
information??


Regards,

	Ole.

---------------------------------------------------------------
Ole Storm
The Institute of Applied Computer Science (IFAD)
Forskerparken 10, DK-5230 Odense M, Denmark
Phone: +45 6315 7134, Fax: +45 6593 2999, Email: storm@ifad.dk
WWW: http://www.ifad.dk
---------------------------------------------------------------