[omniORB] What is wrong here ?
Duncan Grisby
duncan at grisby.org
Tue Oct 28 12:48:34 GMT 2003
On Tuesday 28 October, Vasily Tchekalkin wrote:
> Ali Reza wrote:
>
> > cout <<"IOR is " << str << endl;
> > ...
> >
> > The output I get is:
> > IOR is 002F4F28
> >
> > No exceptions are caught ! Its funny isn't it ?
>
> Your code is right. Except last line. Try use
> out <<"IOR is " << str.in() << endl; It is because CORBA::String_var is
> kind of smart pointer not the "real" string.
In fact, the last line of code should be right, since the compiler
should choose the const char* operator of the String_var in preference
to printing its address. What compiler are you using Ali?
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list