From: Vadim Zeitlin Date: Thu, 5 Apr 2007 22:33:16 +0000 (+0000) Subject: compilation fix for g++ 3 (and probably others) after the last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7c2b62db9173af22dc81aad5e26cbcbc4f2a6645?ds=inline compilation fix for g++ 3 (and probably others) after the last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/stringimpl.h b/include/wx/stringimpl.h index be477a3275..d81185344b 100644 --- a/include/wx/stringimpl.h +++ b/include/wx/stringimpl.h @@ -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,