[omniORB] idl mapping to structs

Kevin Bailey ke-omniorb@retriever.dyndns.org
Thu, 19 Jul 2001 09:15:10 -0700


On Thu, Jul 19, 2001 at 12:57:18PM -0300, Leandro Fanzone wrote:
> 
> bool
> operator==(const StructTest::SomeStruct &Left, const StructTest::SomeStruct
> &Right)
> {
>     return Left.l == Right.l;
> }

That might work on gcc 2.95.x but gcc 3.x (and the new standard)
require that operator== be declared in the same scope as the
type it compares, so the StructTest:: should be unnecessary.