Fix WX_DEFINE_TYPEARRAY assert to refer to base array's elemnt type
rather than to void*.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21935
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
See the comments in beforestd.h.
*/
See the comments in beforestd.h.
*/
+#if defined(__WXMSW__) && defined(__MINGW32__)
+ #include "wx/msw/winundef.h"
+#endif
#ifdef _MSC_VER
# pragma warning(pop)
#endif
#ifdef _MSC_VER
# pragma warning(pop)
#endif
#include <vector>
#include <algorithm>
#include "wx/afterstd.h"
#include <vector>
#include <algorithm>
#include "wx/afterstd.h"
- #if defined(__WXMSW__) && defined(__MINGW32__)
- #include "wx/msw/winundef.h"
- #endif
// ----------------------------------------------------------------------------
#define _WX_DEFINE_SORTED_TYPEARRAY_2(T, name, base, defcomp, classexp, comptype)\
// ----------------------------------------------------------------------------
#define _WX_DEFINE_SORTED_TYPEARRAY_2(T, name, base, defcomp, classexp, comptype)\
-wxCOMPILE_TIME_ASSERT2(sizeof(T) <= sizeof(void *), \
+wxCOMPILE_TIME_ASSERT2(sizeof(T) <= sizeof(base::base_type), \
TypeTooBigToBeStoredInSorted##base, \
name); \
classexp name : public base \
TypeTooBigToBeStoredInSorted##base, \
name); \
classexp name : public base \
#include "wx/beforestd.h"
#include <list>
#include "wx/afterstd.h"
#include "wx/beforestd.h"
#include <list>
#include "wx/afterstd.h"
- #if defined(__WXMSW__) && defined(__MINGW32__)
- #include "wx/msw/winundef.h"
- #endif
#endif
// ----------------------------------------------------------------------------
#endif
// ----------------------------------------------------------------------------