[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 >
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.
jason
 
- [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h,
Jason Short <=
- [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, 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, 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
 
  
  
  
 
 
 | 
 |