[omniORB] String_var and ostream operations.
Patrick Hubert
hubert@discreet.com
Wed, 23 Jan 2002 12:10:32 -0500 (EST)
Hello,
I usually do:
cout << s.in() << endl;
That works fine for me...
-Patrick
> Date: Wed, 23 Jan 2002 17:58:04 +0100
> From: =D3scar Rafael de la Cruz S=E1nchez de la Plaza <ocruz@gmv.es>
> To: OmniOrb List <omniorb-list@uk.research.att.com>
> Subject: [omniORB] String_var and ostream operations.
>=20
> Hi,
>=20
> Why do I have to cast a CORBA::String_var to print its contents:
>=20
> CORBA::String_var s =3D CORBA::string_dup("Whatever!!!!");
> cout << static_cast<char*>(s)[1] << endl; // fine
> cout << s << endl; =09=09=09 // print address of s
>=20
> Thanks and regards.
> --=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
> =D3scar Rafael de la Cruz S=E1nchez de la Plaza.
> GMV S.A. Directorate of Space and Defense.
> Ground Systems / Control Systems and On-board Software.
> P.T.M. Isaac Newton, 11. 28760. Tres Cantos. MADRID.
> Phone.: +34 91 807 3348 Fax.: +34 91 807 2199
> Ext.: 3348. Office.: 201
> e-mail: ocruz@gmv.es
>=20
--
Patrick Hubert
Work: +1.514.954.7233
Fax : +1.514.393.0110