From: Václav Slavík Date: Tue, 21 Aug 2007 10:59:42 +0000 (+0000) Subject: re-added wxVector::erase(size_t) for backward compatibility X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9cf33372157f57f74ccf4cd9c839975b24203799 re-added wxVector::erase(size_t) for backward compatibility git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/vector.h b/include/wx/vector.h index 422e751b84..880dd9bbcd 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -126,6 +126,10 @@ public: return begin() + idx; } +#if WXWIN_COMPATIBILITY_2_8 + wxDEPRECATED( size_type erase(size_type n) ); +#endif // WXWIN_COMPATIBILITY_2_8 + iterator insert(iterator it, const value_type& v = value_type()) { wxCHECK2(Alloc(size() + 1), return 0); @@ -223,6 +227,15 @@ private: value_type **m_objects; }; +#if WXWIN_COMPATIBILITY_2_8 +template +typename wxVector::size_type wxVector::erase(size_type n) +{ + RemoveAt(n); + return n; +} +#endif // WXWIN_COMPATIBILITY_2_8 + #endif // wxUSE_STL/!wxUSE_STL #if WXWIN_COMPATIBILITY_2_8