From: Michael Wetherell Date: Mon, 11 Apr 2005 23:24:30 +0000 (+0000) Subject: Add a comment about covariant returns X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eedf3bcbb39a0881f065e124ab3aadbf725dcbca Add a comment about covariant returns git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/archive.h b/include/wx/archive.h index c38ac18ce6..574f8bf659 100644 --- a/include/wx/archive.h +++ b/include/wx/archive.h @@ -341,6 +341,8 @@ public: wxMBConv& GetConv() const { return *m_pConv; } protected: + // old compilers don't support covarient returns, so 'Do' methods are + // used to simulate them virtual wxArchiveEntry *DoNewEntry() const = 0; virtual wxArchiveInputStream *DoNewStream(wxInputStream& stream) const = 0; virtual wxArchiveOutputStream *DoNewStream(wxOutputStream& stream) const = 0;