[omniORB] Any type
Kevin Williams
KWilliams@visionael.com
Wed Jun 26 16:07:02 2002
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C21D20.EDCA1CC0
Content-Type: text/plain
> if ( !theAny >= theData ) {
I think this should read:
if ( ! theAny >>= theData ) {
The important bit, Alexander, is that the >>= operator will return true if
the Any contains the type you are attempting to extract. If it returns
false, you can attempt to extract an alternate type (an error structure
perhaps) or just consider the absense of data to be an error in and of
itself.
-- Kevin Williams
Visionael Corporation
kwilliams@visionael.com
------_=_NextPart_001_01C21D20.EDCA1CC0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [omniORB] Any type</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>> if ( !theAny >=3D theData ) =
{</FONT>
</P>
<P><FONT SIZE=3D2>I think this should read:</FONT>
</P>
<P><FONT SIZE=3D2> if ( ! theAny >>=3D theData ) {</FONT>
</P>
<P><FONT SIZE=3D2>The important bit, Alexander, is that the >>=3D =
operator will return true if the Any contains the type you are =
attempting to extract. If it returns false, you can attempt to =
extract an alternate type (an error structure perhaps) or just consider =
the absense of data to be an error in and of itself.</FONT></P>
<P><FONT SIZE=3D2>-- Kevin Williams</FONT>
<BR><FONT SIZE=3D2> Visionael Corporation</FONT>
<BR><FONT SIZE=3D2> kwilliams@visionael.com</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C21D20.EDCA1CC0--