[wx-dev] Re: template containers again

Robert Roebling robert at roebling.de
Mon Jul 2 04:03:55 PDT 2007


Vadim Zeitlin wrote:

> VS> 3) do the same for other classes where it's possible (i.e. not the old 
> VS> deprecated wxList class etc.)
> 
>  I'm not sure if it makes sense to do it with wxArrays, we can leave them
> to use the macro-based implementations as we'll want to deprecate them in
> favour of wxVector and/or std::vector anyhow in the future.
> 
>  Anyhow, I think we all agree that we should use templates for wxVector. A
> question I have is whether we should do "#define wxVector std::vector" in
> wxUSE_STL build?

At first I thought that we should do that, but there is actually
little sense in doing so. We can just use our wxVector whatever
the build-mode. Then again, people might want to have the extra
features (which ever) of std::vector in wxWidgets and their app.

  Robert





More information about the wx-dev mailing list