[omniORB] idl mapping to structs
Leandro Fanzone
leandro@hasar.com
Wed, 18 Jul 2001 17:26:39 -0300
I don't see any reason to implement an operator= just to use std::list,
if I understood your problem. The following code compiles OK for omniORB
3.0.4, gcc 3.0:
IDL:
interface StructTest
{
struct SomeStruct
{
unsigned long l;
};
};
C++:
list<StructTest::SomeStruct> l;
for (unsigned i = 0; i < 10; i++)
{
StructTest::SomeStruct p;
p.l = i;
l.push_back(p);
}
for (list<StructTest::SomeStruct>::iterator i = l.begin(); i != l.end();
i++)
cout << i->l << endl;
Leandro Fanzone
Compañía HASAR
Buenos Aires
Argentina
Frederico Faria wrote:
> Hi,
>
> In my implementation code I inherit my idl struct type to
> add an operator== 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