Wx files working

This commit is contained in:
Joey Yakimowich-Payne 2023-02-11 16:21:02 -07:00
commit 30cb0f8f63
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
54 changed files with 3157 additions and 5197 deletions

View file

@ -205,9 +205,18 @@ public:
static void SetValue(const T& value,
wxAnyValueBuffer& buf)
{
// Use placement new
// Use placement new, taking care to avoid running into problems with
// "new" redefinition in wx/msw/msvcrt.h.
#ifdef WXDEBUG_NEW
#undef new
#endif
void* const place = buf.m_buffer;
::new(place) T(value);
#ifdef WXDEBUG_NEW
#define new WXDEBUG_NEW
#endif
}
static const T& GetValue(const wxAnyValueBuffer& buf)