]> git.mxchange.org Git - flightgear.git/commitdiff
* src/Input/input.hxx
authordavid <david>
Sat, 30 Mar 2002 12:52:55 +0000 (12:52 +0000)
committerdavid <david>
Sat, 30 Mar 2002 12:52:55 +0000 (12:52 +0000)
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.

src/Input/input.hxx

index 4b9144f0860e756192bfd9bf1a1e82c8a13c4f3f..a5ff74dbecfc77aced7bf7fb997dddb53f1c77a2 100644 (file)
@@ -248,6 +248,8 @@ private:
     MAX_MICE = 1,
     MAX_MOUSE_BUTTONS = 8
   };
+  struct mouse;
+  friend struct mouse;
 
   typedef vector<FGBinding *> binding_list_t;