1
0
Fork 0

* src/Input/input.hxx

MSVC fix from Bernie Bright:

You can keep the enum private if you add the following declarations
immediately afterwards:

  struct mouse;
  friend struct mouse;

It seems that MSVC doesn't grant the nested mouse decl. any special
access privileges to its surrounding class.
This commit is contained in:
david 2002-03-30 12:52:55 +00:00
parent faf2fa91d2
commit 9cbded8eaa

View file

@ -248,6 +248,8 @@ private:
MAX_MICE = 1,
MAX_MOUSE_BUTTONS = 8
};
struct mouse;
friend struct mouse;
typedef vector<FGBinding *> binding_list_t;