X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edad629344156bc9274a1af372f91d05d54ca297..b4efc9b9315fc9387c44dc5e968dc422b12e7920:/include/wx/dynarray.h diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index b24d807b9c..0f1751ade0 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -320,8 +320,9 @@ public: \ // common declaration used by both _WX_DEFINE_TYPEARRAY and // _WX_DEFINE_TYPEARRAY_PTR #define _WX_DEFINE_TYPEARRAY_HELPER(T, name, base, classexp, ptrop) \ -wxCOMPILE_TIME_ASSERT(sizeof(T) <= sizeof(base::base_type), \ - TypeTooBigToBeStoredIn##base); \ +wxCOMPILE_TIME_ASSERT2(sizeof(T) <= sizeof(base::base_type), \ + TypeTooBigToBeStoredIn##base, \ + name); \ typedef int (CMPFUNC_CONV *CMPFUNC##T)(T *pItem1, T *pItem2); \ classexp name : public base \ { \ @@ -495,8 +496,9 @@ public: \ // ---------------------------------------------------------------------------- #define _WX_DEFINE_SORTED_TYPEARRAY_2(T, name, base, defcomp, classexp, comptype)\ -wxCOMPILE_TIME_ASSERT(sizeof(T) <= sizeof(base::base_type), \ - TypeTooBigToBeStoredInSorted##base); \ +wxCOMPILE_TIME_ASSERT2(sizeof(T) <= sizeof(base::base_type), \ + TypeTooBigToBeStoredInSorted##base, \ + name); \ classexp name : public base \ { \ typedef comptype SCMPFUNC; \