Author: Tom Kerrigan
Date: 13:21:48 12/02/99
I'm currently using the following to define a move:
typedef union {
int i;
struct {
char from;
char to;
char promote;
char flags;
};
} move_t;
This allows the structure to be treated as an integer, so moves can be copied
and compared easily.
However, I just noticed that VC++ 5.0 produces a level 4 warning because the
struct is unnamed.
How bad is this? Will some compilers not compile my stuff because of it?
-Tom
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.