From 89185875a9acb7d4367ae4e0474e992f70247551 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 7 Apr 2020 18:52:42 +0200 Subject: [PATCH] Enable wxMEMBER_DELETE for MSVC It is available since Visual Studio 2015. --- include/wx/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index a7472b60b3..9f3c3a810c 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -2994,7 +2994,7 @@ typedef const void* WXWidget; /* macros to define a class without copy ctor nor assignment operator */ /* --------------------------------------------------------------------------- */ -#if defined(__cplusplus) && __cplusplus >= 201103L +#if defined(__cplusplus) && (__cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(14)) #define wxMEMBER_DELETE = delete #else #define wxMEMBER_DELETE