]> git.saurik.com Git - wxWidgets.git/commitdiff
VC6 compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 23 Aug 2007 12:40:32 +0000 (12:40 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 23 Aug 2007 12:40:32 +0000 (12:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/vector.h

index 1132087a5e288f33bb507b718363ab848a2e395c..3d983aab196d8fa256f5439324bcfb69b90e94f3 100644 (file)
@@ -183,8 +183,9 @@ public:
 #endif // WXWIN_COMPATIBILITY_2_8
 
 private:
-    static const size_type ALLOC_INITIAL_SIZE = 16;
-    static const size_type ALLOC_MAX_SIZE = 4096;
+    // VC6 can't compile static const int members
+    enum { ALLOC_INITIAL_SIZE = 16 };
+    enum { ALLOC_MAX_SIZE = 4096 };
 
     void Copy(const wxVector& vb)
     {