Re: Feel lost with wx/dynarray.h

Vadim Zeitlin <[email protected]> Sun, 26 Jul 2026 15:27:35 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
--8323329-327254586-1785072455=:1435922
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE

On Sun, 26 Jul 2026 06:11:41 -0700 (PDT) 'Hibou57' via wx-users wrote:

H> In interface/dynarray.h there is a template class wxArray<T>.

 Why are you looking at it? These classes are deprecated and shouldn't be
used in the new code, they're only retained for compatibility.

H> I though the interface directory was to contain a strip-down version of 
H> what is in include. Where am I wrong?

 The headers in the interface directory don't always correspond to the real
headers exactly. There are sometimes good reasons for this but I don't
think they apply to this particular header which seems to be just wrong.
Again, the best would probably be to just not deal with it.

H> It says `wxArray<T>::wxSortedArray (int(*)(T first, T 
H> second) compareFunction)`
H> 
H> It was not looking like what I knew of the syntax for pointer to functions. 

 Yes, this is wrong, but it's far from being the only thing wrong there,
wxSortedArray (and inexistent wxObjArray) ctors shouldn't be defined inside
wxArray declaration...

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               https://www.tt-solutions.com/

--8323329-327254586-1785072455=:1435922
Content-Type: APPLICATION/PGP-SIGNATURE

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCamYLRwAKCRAG6kHeT2we
hkUOAKCO9kFra0I8tfhIyM2XTnmtjBoLGgCbBHkADUlGFzfQRlfEflf3xrYDkL8=
=Ps2P
-----END PGP SIGNATURE-----

--8323329-327254586-1785072455=:1435922--