[omniORB] T_var in an STL Container

Ken Feuerman kfeuerma@Adobe.COM
Thu, 09 Mar 2000 11:30:18 -0800


At 01:54 PM 3/9/00 -0500, Stefan Seefeld wrote:
>Ken Feuerman wrote:
>
>> Thanks!  But now your comment about _duplicate() worries me.  I think if I
[...]
>> 
>
>no, because the duplicate is done before the method returned, either by you
>if you implemented that method (i.e. it's a local call) or by the ORB if
>it returns from an up-call (i.e. the method is part of an auto-generated
proxy). 
>All is fine.
>
>However, if the pointer is from an 'in' parameter of a method, you do need
>to duplicate yourself.
>
>void ServerImpl::registerObject(const char *name, Object_ptr object)
>{
>  table[name] = Object::_duplicate(object);
>}
>

Got it.  I'm in the clear; the T_ptr is being returned from an up-call.
Thanks for the sanity check!

--Ken Feuerman.
Adobe Systems, Inc.