]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for g++ 3.4 (and maybe others)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 02:12:09 +0000 (02:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 02:12:09 +0000 (02:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cmdargs.h

index 57b22b42e54260266391c968ad1071b2d5c49ade..e3dbd16a3683ca554966fc8a12a1c836f2469a00 100644 (file)
@@ -85,6 +85,13 @@ public:
         return m_args[n];
     }
 
+    // we must provide this overload for g++ 3.4 which can't choose between
+    // our operator[](size_t) and ::operator[](char**, int) otherwise
+    wxString operator[](int n) const
+    {
+        return m_args[n];
+    }
+
     // this is the only method of this class which doesn't exist solely for
     // compatibility purposes: it allows to access the arguments as a
     // convenient array of wxStrings