[omniORB] Problem with Any type
Le Flour Thierry
leflour at lapp.in2p3.fr
Thu Dec 11 17:38:07 GMT 2003
Hi all,
i would like to code into a Any type a structure described in my IDL file.
I tried to do the following:
CORBA::Any myAny;
MyStructure aStruct;
(* Filling the structure*)
myAny <<= aStruct;
When i compile this piece of code , the compiler says :
No matching for `CORBA::Any & <<= MyStructure &'
/usr/local/include/omniORB4/CORBA_Any.h:69: candidates are: void
CORBA::Any::operator<<= (cdrStream &)
...
I tried to cast with :
myAny <<= (cdrStram &)aStruct
but , of course, it does work.
So, what i did wrong with this piece of code.
Thank you
Cheers.
More information about the omniORB-list
mailing list