[omniORB] object reference widening to a member

Duncan Grisby duncan at grisby.org
Fri Mar 26 14:44:04 GMT 2004


On Friday 26 March, Zsolt Rizsanyi wrote:

> I had a nasty bug because I was implicitly widening an _var object 
> reference to an Object_member of the of a CORBA struct.
> 
> After reading up in the C++ language mapping specification, I have found 
> that a compile time error should be generated on an attempt to implicitly 
> widen an _var reference to Object_var.

[...]
> In my understanding the ors.obj = echoVar assignment should generate a 
> compile time error.
> Am I mistaken? Or is this issue already known?

It should cause a compile time error but it doesn't. Unfortunately, it
can't be done in 4.0.x because it requires an incompatible change to
the _var classes. It's already fixed in the 4.1 development branch.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list