template containers again
Vaclav Slavik
vslavik at fastmail.fm
Sun Jul 1 23:08:03 PDT 2007
Hi,
Vadim Zeitlin wrote:
> I think this is a good idea. Of course, there already is a
> wx/vector.h too but it doesn't define any class named wxVector and
> we can hopefully even keep the WX_DECLARE_VECTOR macro working with
> a new template-based implementation.
That's how I understood Robert's mail, that we would keep the existing
wxVector/wxArray "classes", but make them templates, and keep the
macros for backward compatibility.
To be perfectly clear, what I think would be the best thing to do is
1) replace wxVectorBase and the class defined by _WX_DECLARE_VECTOR
with a wxVector<T> template
2) for backward compatibility, define WX_DECLARE_VECTOR as a trivial
wrapper around this new class
3) do the same for other classes where it's possible (i.e. not the old
deprecated wxList class etc.)
Am I missing something?
Regards,
Vaclav
--
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20070702/eac4c3e8/attachment.pgp
More information about the wx-dev
mailing list