[omniORB] omniidl generated headers

Duncan Grisby duncan@grisby.org
Fri Oct 4 07:36:01 2002


On Thursday 3 October, "Kevin Wooten" wrote:

> This is a multi-part message in MIME format.

[ Please don't send HTML email to the omniORB list! ]

> Example IDL:
>                      typedef sequence<Variant> VariantSeq;
>                      typedef sequence<Variant> AnotherSeq;
>
> This IDL produces two distinctly different, yet functionally the same,
> c++ types.
> 
> Is this a requirement of the CORBA mapping, or some other requirement?

It's a requirement of the C++ mapping. When you insert a sequence into
an Any, the Any's typecode should include the alias typecode -- i.e.
the name of the type. The only way to have the overloaded <<=
insertion operator do the right thing is to make sequence typedefs
distinct types.

Cheers,

Duncan.

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