[omniORB] idl mapping to structs

Frederico Faria frederico@ati.com.br
Thu, 19 Jul 2001 11:13:46 -0700


Hi Leandro,

I think that my problem is with the use of  std::find() algorithms  over
my list.

Thank you,

Leandro Fanzone wrote:
> =

> I don't see any reason to implement an operator=3D just to use std::lis=
t,
> if I understood your problem. The following code compiles OK for omniOR=
B
> 3.0.4, gcc 3.0:
> =

> IDL:
> =

> interface StructTest
> {
>     struct SomeStruct
>     {
>         unsigned long l;
>     };
> };
> =

> C++:
> =

> list<StructTest::SomeStruct> l;
> =

> for (unsigned i =3D 0; i < 10; i++)
> {
>     StructTest::SomeStruct p;
>     p.l =3D i;
>     l.push_back(p);
> }
> =

> for (list<StructTest::SomeStruct>::iterator i =3D l.begin(); i !=3D l.e=
nd();
> i++)
>     cout << i->l << endl;
> =

> Leandro Fanzone
> Compa=F1=EDa HASAR
> Buenos Aires
> Argentina
> =

> Frederico Faria wrote:
> =

> > Hi,
> >
> > In my implementation code I inherit my idl struct type to
> > add an operator=3D=3D method. In this way , I will can use the
> > stl list<> implementation with  the derived struct.
> >
> > Is There any other method to resolve it ?
> >
> > thank you,
> >
> > Faria