From d15bf9005058295f4fad7145de84e483f08b4cc4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Sep 2021 16:48:32 +0200 Subject: [PATCH] Attempt to work around build problem under OpenVMS OpenVMS build was broken by 303d899cc0 (Make STL-based wxList more compatible with the default one, 2021-09-02), try to blindly fix it by casting the element to the same type it had had before. --- include/wx/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/list.h b/include/wx/list.h index 802e7d162a..b11d1702e5 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -188,7 +188,7 @@ private: { \ liT* _this = const_cast< liT* >( this ); \ return compatibility_iterator( _this, \ - std::find( _this->begin(), _this->end(), e ) ); \ + std::find( _this->begin(), _this->end(), (const elT)e ));\ } \ \ bool IsEmpty() const \