]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for g++ 3 (and probably others) after the last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 22:33:16 +0000 (22:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 22:33:16 +0000 (22:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/stringimpl.h

index be477a3275a6ec86e9bc2471b400105369d50a6c..d81185344bc1feaf81c2ea6a214b08e2d6c9a918 100644 (file)
@@ -239,6 +239,11 @@ public:
                                                                               \
         pointer m_ptr
 
+  // we need to declare const_iterator in wxStringImpl scope, the friend
+  // declaration inside iterator class itself is not enough, or at least not
+  // for g++ 3.4 (g++ 4 is ok)
+  class const_iterator;
+
   class iterator
   {
     WX_DEFINE_STRINGIMPL_ITERATOR(iterator,