Bug with Any and struct ?

Yvan Peter Yvan.Peter@cnet.francetelecom.fr
Mon, 12 Jan 1998 09:09:51 +0100


--------------D04BD2E4BB7A53D96EA753D4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

  I have a problem when compiling skeleton when there is a struct with
an any in the idl.

  Just like in this modified eg3 example:

struct foo {
      any value;
} ;

interface Echo {
  string echoString(in string mesg);
};

  Compilation trace:

/usr/local/snapshot_971224//stub/echoSK.cc: In method `unsigned int
foo::NP_alignedSize(unsigned int) const':
/usr/local/snapshot_971224//stub/echoSK.cc:11: no member function
`CORBA::Any::NP_alignedSize(long unsigned int)' defined
/usr/local/snapshot_971224//stub/echoSK.cc: In method `void
foo::operator >>=(class NetBufferedStream &) const':
/usr/local/snapshot_971224//stub/echoSK.cc:18: no matching function for
call to `CORBA::Any::operator >>= (NetBufferedStream) const'
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:378: candidates
are: CORBA::Any::operator >>=(unsigned char &) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:369:
CORBA::Any::operator >>=(CORBA::Any::to_octet) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:368:
CORBA::Any::operator >>=(CORBA::Any::to_char) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:367:
CORBA::Any::operator >>=(CORBA::Any::to_boolean) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:331:
CORBA::Any::operator >>=(char *&) const

    ... and so on.

  Hope this can easily be fixed.

  Cheers,

  Yvan

--
Yvan PETER   France Telecom/CNET
42, rue des Coutures - BP6243 F-14066 CAEN Cedex
phone (+33) 2.31.75.91.39 / fax (+33) 2.31.73.56.26
email: Yvan.Peter@cnet.francetelecom.fr



--------------D04BD2E4BB7A53D96EA753D4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>


<P>&nbsp; I have a problem when compiling skeleton when there is a struct
with an any in the idl.

<P>&nbsp; Just like in this modified eg3 example:
<BR>&nbsp;
<BR>struct foo {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; any value;
<BR>} ;

<P>interface Echo {
<BR>&nbsp; string echoString(in string mesg);
<BR>};

<P>&nbsp; Compilation trace:

<P>/usr/local/snapshot_971224//stub/echoSK.cc: In method `unsigned int
foo::NP_alignedSize(unsigned int) const':
<BR>/usr/local/snapshot_971224//stub/echoSK.cc:11: no member function `CORBA::Any::NP_alignedSize(long
unsigned int)' defined
<BR>/usr/local/snapshot_971224//stub/echoSK.cc: In method `void foo::operator
>>=(class NetBufferedStream &amp;) const':
<BR>/usr/local/snapshot_971224//stub/echoSK.cc:18: no matching function
for call to `CORBA::Any::operator >>= (NetBufferedStream) const'
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:378: candidates
are: CORBA::Any::operator >>=(unsigned char &amp;) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:369:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CORBA::Any::operator >>=(CORBA::Any::to_octet) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:368:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CORBA::Any::operator >>=(CORBA::Any::to_char) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:367:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CORBA::Any::operator >>=(CORBA::Any::to_boolean) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:331:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CORBA::Any::operator >>=(char *&amp;) const

<P>&nbsp;&nbsp;&nbsp; ... and so on.

<P>&nbsp; Hope this can easily be fixed.

<P>&nbsp; Cheers,

<P>&nbsp; Yvan
<PRE>--&nbsp;
Yvan PETER&nbsp;&nbsp; France Telecom/CNET
42, rue des Coutures - BP6243 F-14066 CAEN Cedex
phone (+33) 2.31.75.91.39 / fax (+33) 2.31.73.56.26
email: Yvan.Peter@cnet.francetelecom.fr</PRE>
&nbsp;</HTML>

--------------D04BD2E4BB7A53D96EA753D4--