[omniORB] Help needed: operator <<= is ambiguous

Gary D. Duzan gdd0@gte.com
Thu, 03 Dec 1998 09:43:26 -0500


In Message <9812031437.AA00668@fmsserv99.azfms.com> ,
   c1040@azfms.com (Rusty Carruth) wrote:

=>> Your problem appears to be that OmniORB has (paraphrasing):
=>> 
=>>    void Any::operator<<=(const char*& s);
=>> 
=>> when it should probably be:
=>> 
=>>    void Any::operator<<=(const char*& s);
=>
=>um, call me dense, but what's the difference?  ;-)
=>
=>rusty

   Heh. Oops. Shows what happens when you are distracted in the middle
of sending an email. :-) The second should be:

   void Any::operator<<=(const char* s);

(Note the removed '&'.) The point being that you need a temporary for
the first one to work, but not this one. There may be some other reason
this is this way but I haven't looked into it. (For example, there may
have been a conflict with the Any encoder for String_var.)

					Gary Duzan
					GTE Laboratories