CORBA object used in Vector

N

niks

Hi ,
I am trying to create a vector that makes use of Vector.The vector is
of CORBA object type.
The CORBA object is defined by me in the idl.

For ex:-

the idl definition is as given below

module A
{
module B
{
sequence < int> list;
}
}

Now i am using this CORBA definition in my C++ programme as follows

I have created an object of type A::B::list;
This list is of type vector.

I create the iterator for this list .
Now when i try to use it in the for loop as below it shows the
following error

for(iter = list.begin();i!=list.end();i++)

The error message says that the operator = and != are not defined for
the argument list.
Further is says that the operator is defined for the CORBA object and
expects return value as int
i mean

int = opertor is defined.

Why is this so??

Another thing when we define the vector the vector will behave
depending upon the properties of a vector so why should it give such a
error??

This is problem i face when i try in linux version while the same thing
works for HP Unix.

Please reply
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top