To avoid this problem in future, maybe we should define a macro in
. Something like:
#ifdef SG_NO_INCLASS_MEMBER_INITIALIZATION
# define SG_STATIC_CONSTANT(type, assignment) enum { assignment }
#else
# define SG_STATIC_CONSTANT(type, assignment) static const type
assignment
#endif
Usage then be
Jonathan Polley
writes:
Although SimGear is now building under MSVC (thanks).MSVC also does not like having
constants defined in a class (net_fdm.hxx and raw_ctrls.hxx).static
const int FG_MAX_ENGINES = 4;static const int FG_MAX_WHEELS = 3;static
const int FG_MAX_TANKS = 2;When I
ED]
> Subject: [Flightgear-devel] MSVC Still not Building
>
>
> Although SimGear is now building under MSVC (thanks).
>
> MSVC also does not like having constants defined in a class (net_fdm.hxx
> and raw_ctrls.hxx).
>
> static const int FG_MAX_ENGINES = 4;
&
These
items should not be limited, anyhow. Where is this done???
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan
PolleySent: Monday, April 08, 2002 9:24 PMTo:
[EMAIL PROTECTED]Subject: [Flightgear-devel] MSVC
Still not Building
Although SimGear is now building under MSVC (thanks).
MSVC also does not like having constants defined in a class (net_fdm.hxx and raw_ctrls.hxx).
static const int FG_MAX_ENGINES = 4;
static const int FG_MAX_WHEELS = 3;
static const int FG_MAX_TANKS = 2;
When I used the recommended, and I apolog