[omniORB] Sequence of Sequence causes client compiler errors!!!
Gary D. Duzan
gdd0@gte.com
Thu, 28 Jan 1999 15:39:36 -0500
In Message <36bec4c1.102551527@smtp.ne.mediaone.net> ,
dmorgen@alum.mit.edu (David Morgenlender) wrote:
=>IAE, I still don't understand why this compiles:
=>
=> Tests::TestResultsList* seqResults;
=> INTERFACE_TESTS-> Test(seqResults);
=>
=>and this does not:
=>
=> Tests::TestResultsList seqResults;
=> INTERFACE_TESTS-> Test(&seqResults);
Test is probably defined to take a "Tests::TestResultsList*&", or a
reference to a pointer. The first one defines storage for a pointer
variable, so making a reference to it is no problem. The second is a
temporary pointer value which doesn't have a memory location, so can't
have a reference to it without creating a temporary variable for it,
which is not done automatically unless it is a reference to a const.
The basic issue is that Test() wants to write to the pointer, but
that doesn't make sense in the second case.
Gary Duzan
GTE Laboratories