Add wxNOEXCEPT and use it for std::streambuf-derived classes.
This fixes warnings from Intel compiler about overriding function using a different exception specification than the base one and also incidentally provides a handy macro that can be useful in other situations. Closes #14826. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3335,6 +3335,17 @@ typedef const void* WXWidget;
|
||||
#define DECLARE_NO_ASSIGN_CLASS(classname) \
|
||||
wxDECLARE_NO_ASSIGN_CLASS(classname);
|
||||
|
||||
/* Macro that can be used to indicate that a function doesn't throw. */
|
||||
#if defined(__cplusplus) && __cplusplus >= 199711L /* C++98 */
|
||||
# if __cplusplus >= 201103L /* >= C++11 */
|
||||
# define wxNOEXCEPT noexcept
|
||||
# else
|
||||
# define wxNOEXCEPT throw()
|
||||
# endif
|
||||
#else
|
||||
# define wxNOEXCEPT
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------- */
|
||||
/* If a manifest is being automatically generated, add common controls 6 to it */
|
||||
/* --------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user