From 1a9da25c3376efd617a532ef369e984c99f0b84b Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 3 Feb 2020 09:33:09 -0800 Subject: [PATCH] STL build fix for MSVS after 948ddc6e0f --- include/wx/dynarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 23be3289be..67dc5e6f5e 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -391,7 +391,7 @@ public: void Insert(const T* pItem, size_t uiIndex) { - base::insert(this->begin() + uiIndex, pItem); + base::insert(this->begin() + uiIndex, const_cast(pItem)); } void Empty() { DoEmpty(); base::clear(); }