Merge branch 'noexcept-event-tables'

Allow using noexcept handlers in event tables.

See https://github.com/wxWidgets/wxWidgets/pull/1788
This commit is contained in:
Vadim Zeitlin
2020-04-12 16:41:55 +02:00
4 changed files with 51 additions and 2 deletions

View File

@@ -285,12 +285,19 @@ typedef short int WXTYPE;
#define wxOVERRIDE
#endif /* HAVE_OVERRIDE */
/* same for defaulted member function keyword */
/* same for more C++11 keywords which don't have such historic baggage as
override and so can be detected by just testing for C++11 support (which
still requires handling MSVS specially, unfortunately) */
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(14)
#define wxHAS_MEMBER_DEFAULT
#define wxMEMBER_DEFAULT = default
#define wxHAS_NOEXCEPT
#define wxNOEXCEPT noexcept
#else
#define wxMEMBER_DEFAULT
#define wxNOEXCEPT
#endif
/*