Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11276) [C++] client/tilespec.h refers to an enum c
Home

[Freeciv-Dev] Re: (PR#11276) [C++] client/tilespec.h refers to an enum c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: fbriere@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11276) [C++] client/tilespec.h refers to an enum constant out of scope
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Wed, 1 Dec 2004 11:30:24 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11276 >

On Wed, 1 Dec 2004, [UTF-8] Frédéric Brière wrote:

> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11276 >
>
> C++ defines structures as having their own scope; this patch fixes a
> reference to an enumeration constant from outside the scope of its
> enclosing structure.  (The structure itself is defined in
> client/citydlg_common.h)

I *hate* this sort of stuff. Please figure out how to get the code to be
both valid C and C++ without using #ifdefs.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






[Prev in Thread] Current Thread [Next in Thread]