document the problem with using arrays whose element size is larger than the actual size of the elements stored in them (bug 1572314)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,11 @@ WX_DEFINE_SORTED_ARRAY_INT(int, ArrayOfSortedInts);
|
||||
\end{verbatim}
|
||||
|
||||
i.e. there is only one {\tt DEFINE} macro and no need for separate
|
||||
{\tt DECLARE} one.
|
||||
{\tt DECLARE} one. For the arrays of the primitive types, the macros
|
||||
{\tt WX\_DEFINE\_ARRAY\_CHAR/SHORT/INT/SIZE\_T/LONG/DOUBLE} should be used
|
||||
depending on the sizeof of the values (notice that storing values of smaller
|
||||
type, e.g. shorts, in an array of larger one, e.g. {\tt ARRAY\_INT}, does
|
||||
\emph{not} work on all architectures!).
|
||||
|
||||
|
||||
\wxheading{See also:}
|
||||
|
Reference in New Issue
Block a user