From: david Date: Sat, 30 Mar 2002 12:52:55 +0000 (+0000) Subject: * src/Input/input.hxx X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cbded8eaaffa9f7fd2790c3700decd22659547d;p=flightgear.git * 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. --- diff --git a/src/Input/input.hxx b/src/Input/input.hxx index 4b9144f08..a5ff74dbe 100644 --- a/src/Input/input.hxx +++ b/src/Input/input.hxx @@ -248,6 +248,8 @@ private: MAX_MICE = 1, MAX_MOUSE_BUTTONS = 8 }; + struct mouse; + friend struct mouse; typedef vector binding_list_t;