[Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=11282 >
On Wed, 1 Dec 2004, Jason Short wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11282 >
>
> Frédéric Brière wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=11282 >
> >
> > client/climisc.h has the following definition:
> >
> > typedef int cid;
> > ...
> > struct item {
> > cid cid;
> > ...
> >
> >
> > I don't know if this is allowed or not in C++, but g++ chokes on this,
> > as it confuses both uses of cid. This patch disambiguates this.
>
> Just change the 'cid' type to cid_type. Or even better, figure out what
> 'cid' is supposed to mean and give it a legible name.
compound? complex?
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Jason Short, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Vasco Alexandre da Silva Costa, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h,
Vasco Alexandre da Silva Costa <=
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Jason Short, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/01
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Vasco Alexandre da Silva Costa, 2004/12/02
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/02
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/02
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h, Frédéric Brière, 2004/12/16
|
|