C++ bindings for CORBA: Widening CORBA object references

If interface A is a (direct or indirect) base of interface B, the following assignments do not require an explicit C++ cast:

B_var cannot be assigned to A_var or a compile-time error occurs. To assign B_var to A_var, use B::_duplicate on B_var to create B_ptr and assign B_ptr to A_var.


Related reference
CORBA C++ bindings for interfaces



Searchable topic ID:   rcor_copwor
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_copwor.html

Library | Support | Terms of Use | Feedback