|
|
|
|
|
|
| Author |
Message |
niks *nix forums beginner
Joined: 21 Jul 2006
Posts: 2
|
Posted: Fri Jul 21, 2006 7:40 am Post subject:
CORBA object used in Vector
|
|
|
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??
Please reply
Thanks |
|
| Back to top |
|
 |
Stefan Näwe *nix forums addict
Joined: 14 Apr 2005
Posts: 85
|
Posted: Fri Jul 21, 2006 8:25 am Post subject:
Re: CORBA object used in Vector
|
|
|
niks schrieb:
| Quote: | 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??
Please reply
Thanks
|
The answer might be here:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.8
/S
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 3:13 pm | All times are GMT
|
|
Credit Card Consolidation | Credit Cards | Nancy Ajram | Record Internet Radio with Tags | Music Festival
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|