[omniORB] Re: operator * for _var types?

Michael Teske mteske-csk at t-online.de
Wed Jul 23 21:24:35 BST 2008


Hi,

Jonathan Biggar wrote:
> Michael Teske wrote:
>>> The horrid construct:
>>> X::Y y = *(f.operator->()) would presumably work.
>>
>> This would be really horrible :)
> 
> X::Y y = f.in();
> 
> is much cleaner.

Yeah. I've read the chapter again, and there's no mentioning of an operator*, 
except in the example code. And
X::Y y = f;
should work, too, because of implicit conversions. And even
X::Y_var g;
g = f;
would do a deep copy (in the book they wrongly wrote *g=*f; ).
What a pity the stuff compiled under the old orb****, so I'll have to fix it now.

Greetings,
   Michael





More information about the omniORB-list mailing list